1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 11:35:07 -05:00

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
This commit is contained in:
Mohammad AlSaleh 2018-02-08 20:23:22 +02:00 committed by Jay Satiro
parent daf959f692
commit f886cbfe9c

View File

@ -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,