diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/IO/http.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -5,6 +5,8 @@ Dillo project dillo-2.2.1 [not released yet] +- Configurable User-Agent HTTP header. Patch: Alexander Voigt, corvid ++- Include Accept header in HTTP queries. + Patch: corvid ----------------------------------------------------------------------------- diff --git a/src/IO/http.c b/src/IO/http.c index 67d552c8..1ff7399b 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -305,6 +305,7 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) query, "POST %s HTTP/1.1\r\n" "Connection: close\r\n" + "Accept: text/*,image/*,*/*;q=0.2\r\n" "Accept-Charset: utf-8,*;q=0.8\r\n" "Accept-Encoding: gzip\r\n" "%s" /* language */ @@ -329,6 +330,7 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "GET %s HTTP/1.1\r\n" "%s" "Connection: close\r\n" + "Accept: text/*,image/*,*/*;q=0.2\r\n" "Accept-Charset: utf-8,*;q=0.8\r\n" "Accept-Encoding: gzip\r\n" "%s" /* language */ |