diff options
author | 2015-08-13 16:59:16 -0700 | |
---|---|---|
committer | 2015-08-13 16:59:16 -0700 | |
commit | cddd95bfd8fa0d701bdf529e94be3dd76a189764 (patch) | |
tree | e5893fcfa56fe95070ab75600ea977ab2e03cc7f /src/core/compression | |
parent | c49a48bd7545466d6535b0a548854ce8954ea045 (diff) |
Renamed "none" as "identity" for the no-op compression algorithm for consistency with the spec
Diffstat (limited to 'src/core/compression')
-rw-r--r-- | src/core/compression/algorithm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/compression/algorithm.c b/src/core/compression/algorithm.c index e426241d0a..0fd028741e 100644 --- a/src/core/compression/algorithm.c +++ b/src/core/compression/algorithm.c @@ -37,7 +37,7 @@ int grpc_compression_algorithm_parse(const char* name, grpc_compression_algorithm *algorithm) { - if (strcmp(name, "none") == 0) { + if (strcmp(name, "identity") == 0) { *algorithm = GRPC_COMPRESS_NONE; } else if (strcmp(name, "gzip") == 0) { *algorithm = GRPC_COMPRESS_GZIP; @@ -53,7 +53,7 @@ int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, char **name) { switch (algorithm) { case GRPC_COMPRESS_NONE: - *name = "none"; + *name = "identity"; break; case GRPC_COMPRESS_DEFLATE: *name = "deflate"; |