souphttpsrc: Always use the content decoder but set `Accept-Encoding: identity` if...
authorSebastian Dröge <sebastian@centricular.com>
Sun, 15 Aug 2021 09:26:38 +0000 (12:26 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 15 Aug 2021 09:29:06 +0000 (12:29 +0300)
commit04963cac86dec703838920b9be1961e83d537d54
tree569a71403350964fc9cee9038c4abf9dba8ba278
parentcfd4a9a6d9a677ac07b5a4dc1678ab250d705a68
souphttpsrc: Always use the content decoder but set `Accept-Encoding: identity` if no compression should be used

Some servers respond with gzip-encoded responses regardless of whether
the request allowed it to be used in the response. By always having the
content decoder enabled, these invalid responses can be decoded
correctly while for well-behaving servers the `compress` property
selects between allowing compressed responses or not.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/833

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1053>
ext/soup/gstsouphttpsrc.c