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
1 changed files with 1 additions and 1 deletions

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,