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:
parent
daf959f692
commit
f886cbfe9c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user