Add 'Accept-Encoding: identity' to request header

Fixes bug #40819
Reported-by: Noël Köthe <noel@debian.org>
This commit is contained in:
Tim Rühsen 2014-11-11 16:01:58 +01:00 committed by Tim Ruehsen
parent 9823dc1989
commit 176c2b17fc
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2014-11-11 Tim Ruehsen <tim.ruehsen@gmx.de>
* http.c (gethttp): Always add Accept-Encoding: identity
Fixes bug #40819
Reported-by: Noël Köthe <noel@debian.org>
2014-11-11 Tim Ruehsen <tim.ruehsen@gmx.de>
* main.c: Fix missing _Noreturn declaration specifiers

View File

@ -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;