From 176c2b17fc9fd5e5e9db654e599fbfd2ae313bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Tue, 11 Nov 2014 16:01:58 +0100 Subject: [PATCH] Add 'Accept-Encoding: identity' to request header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes bug #40819 Reported-by: Noël Köthe --- src/ChangeLog | 7 +++++++ src/http.c | 1 + 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 2fd72135..03d8ca79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2014-11-11 Tim Ruehsen + + * http.c (gethttp): Always add Accept-Encoding: identity + + Fixes bug #40819 + Reported-by: Noël Köthe + 2014-11-11 Tim Ruehsen * main.c: Fix missing _Noreturn declaration specifiers diff --git a/src/http.c b/src/http.c index 584f4a85..de96e329 100644 --- a/src/http.c +++ b/src/http.c @@ -1801,6 +1801,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, rel_value); SET_USER_AGENT (req); request_set_header (req, "Accept", "*/*", rel_none); + request_set_header (req, "Accept-Encoding", "identity", rel_none); /* Find the username and password for authentication. */ user = u->user;