aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/compression
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-08-13 16:59:16 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-08-13 16:59:16 -0700
commitcddd95bfd8fa0d701bdf529e94be3dd76a189764 (patch)
treee5893fcfa56fe95070ab75600ea977ab2e03cc7f /src/core/compression
parentc49a48bd7545466d6535b0a548854ce8954ea045 (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.c4
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";