anonymous
2018-02-20 09:59:55 UTC
URL:
<http://savannah.gnu.org/bugs/?53191>
Summary: wget doesn't unzip data even with an Encoding:gzip
header
Project: GNU Wget
Submitted by: None
Submitted on: Tue 20 Feb 2018 09:59:54 AM UTC
Category: Protocol Issue
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name: Johan Vromans
Originator Email: ***@squirrel.nl
Open/Closed: Open
Discussion Lock: Any
Release: 1.19.1
Operating System: GNU/Linux
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None
_______________________________________________________
Details:
When wget retrieves data it passes (by default) an 'Accept-Encoding:gzip'
header. This requests the web server to gzip the data. If the server gzipped
the data, it will add an 'Encoding:gzip' header.
Upon receipt wget then unzips the data. However, it makes an exception for
gzipped Content-Types (e.g., application/x-gzip).
I think this exception is incorrect. If a web server adds Encoding:gzip, it
explicitly indicates that it did a gzip on the data, and that the received
data should be gunzipped regardless of Content-Type.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53191>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
<http://savannah.gnu.org/bugs/?53191>
Summary: wget doesn't unzip data even with an Encoding:gzip
header
Project: GNU Wget
Submitted by: None
Submitted on: Tue 20 Feb 2018 09:59:54 AM UTC
Category: Protocol Issue
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name: Johan Vromans
Originator Email: ***@squirrel.nl
Open/Closed: Open
Discussion Lock: Any
Release: 1.19.1
Operating System: GNU/Linux
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None
_______________________________________________________
Details:
When wget retrieves data it passes (by default) an 'Accept-Encoding:gzip'
header. This requests the web server to gzip the data. If the server gzipped
the data, it will add an 'Encoding:gzip' header.
Upon receipt wget then unzips the data. However, it makes an exception for
gzipped Content-Types (e.g., application/x-gzip).
I think this exception is incorrect. If a web server adds Encoding:gzip, it
explicitly indicates that it did a gzip on the data, and that the received
data should be gunzipped regardless of Content-Type.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53191>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/