Commit a1148a04 authored by Thomas Bluemel's avatar Thomas Bluemel Committed by Normen Bolling

Handle response header Transfer-Encoding: identity

Don't set the encoding to SOUP_ENCODING_UNRECOGNIZED if the
Transfer-Encoding value is "identity". This allows
soup_message_headers_get_encoding to determine the encoding
based on the other headers present (if any).

Fixes #148
parent f0d2af22
......@@ -666,7 +666,7 @@ transfer_encoding_setter (SoupMessageHeaders *hdrs, const char *value)
if (value) {
if (g_ascii_strcasecmp (value, "chunked") == 0)
hdrs->encoding = SOUP_ENCODING_CHUNKED;
else
else if (g_ascii_strcasecmp (value, "identity") != 0)
hdrs->encoding = SOUP_ENCODING_UNRECOGNIZED;
} else
hdrs->encoding = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment