summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>2018-02-08 20:23:22 +0200
committerJay Satiro <raysatiro@yahoo.com>2018-02-09 03:11:18 -0500
commitf886cbfe9c3055999d8174b2eedc826d0d9a54f1 (patch)
treec527c221cf06bd49dcdaa3027a65689670f39f74 /lib
parentdaf959f6927094ec6cc651512a94e725f476bbb0 (diff)
downloadcurl-f886cbfe9c3055999d8174b2eedc826d0d9a54f1.tar.gz
content_encoding: Add "none" alias to "identity"
Some servers return a "content-encoding" header with a non-standard "none" value. Add "none" as an alias to "identity" as a work-around, to avoid unrecognised content encoding type errors. Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com> Closes https://github.com/curl/curl/pull/2298
Diffstat (limited to 'lib')
-rw-r--r--lib/content_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index 46bef0ca9..2b2188b73 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -726,7 +726,7 @@ static void identity_close_writer(struct connectdata *conn,
static const content_encoding identity_encoding = {
"identity",
- NULL,
+ "none",
identity_init_writer,
identity_unencode_write,
identity_close_writer,