diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-04-08 22:50:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-04-18 19:46:21 +0200 |
commit | 2db6f7e703bda76872a0e05f2d5fe6c5a7ddaf74 (patch) | |
tree | fc93642481beb30db41840429518a00b46a5ddf3 /lib/http.c | |
parent | 0790b2791091ca46bed3813dc7d04cd3f30e5dac (diff) |
TE: rename struct field content_encoding
Since this struct member is used in the code to determine what and how
to decode automatically and since it is now also used for compressed
Transfer-Encodings, I renamed it to the more suitable 'auto_decoding'
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/http.c b/lib/http.c index 6b14fab19..c442eebab 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3169,32 +3169,32 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, start += 7; } - if(k->content_encoding) + if(k->auto_decoding) /* TODO: we only support the first mentioned compression for now */ break; if(checkprefix("identity", start)) { - k->content_encoding = IDENTITY; + k->auto_decoding = IDENTITY; start += 8; } else if(checkprefix("deflate", start)) { - k->content_encoding = DEFLATE; + k->auto_decoding = DEFLATE; start += 7; } else if(checkprefix("gzip", start)) { - k->content_encoding = GZIP; + k->auto_decoding = GZIP; start += 4; } else if(checkprefix("x-gzip", start)) { - k->content_encoding = GZIP; + k->auto_decoding = GZIP; start += 6; } else if(checkprefix("compress", start)) { - k->content_encoding = COMPRESS; + k->auto_decoding = COMPRESS; start += 8; } else if(checkprefix("x-compress", start)) { - k->content_encoding = COMPRESS; + k->auto_decoding = COMPRESS; start += 10; } else @@ -3222,15 +3222,15 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, /* Record the content-encoding for later use */ if(checkprefix("identity", start)) - k->content_encoding = IDENTITY; + k->auto_decoding = IDENTITY; else if(checkprefix("deflate", start)) - k->content_encoding = DEFLATE; + k->auto_decoding = DEFLATE; else if(checkprefix("gzip", start) || checkprefix("x-gzip", start)) - k->content_encoding = GZIP; + k->auto_decoding = GZIP; else if(checkprefix("compress", start) || checkprefix("x-compress", start)) - k->content_encoding = COMPRESS; + k->auto_decoding = COMPRESS; } else if(checkprefix("Content-Range:", k->p)) { /* Content-Range: bytes [num]- |