diff options
author | Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com> | 2018-02-08 20:23:22 +0200 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-02-09 03:11:18 -0500 |
commit | f886cbfe9c3055999d8174b2eedc826d0d9a54f1 (patch) | |
tree | c527c221cf06bd49dcdaa3027a65689670f39f74 /lib/content_encoding.c | |
parent | daf959f6927094ec6cc651512a94e725f476bbb0 (diff) | |
download | curl-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/content_encoding.c')
-rw-r--r-- | lib/content_encoding.c | 2 |
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, |