From f886cbfe9c3055999d8174b2eedc826d0d9a54f1 Mon Sep 17 00:00:00 2001 From: Mohammad AlSaleh Date: Thu, 8 Feb 2018 20:23:22 +0200 Subject: 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 Closes https://github.com/curl/curl/pull/2298 --- lib/content_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/content_encoding.c') 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, -- cgit v1.2.3