diff options
author | corvid <devnull@localhost> | 2014-03-16 22:37:33 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-03-16 22:37:33 +0000 |
commit | 443596beeec3243fdc69f53b1ca57d2810a5f0af (patch) | |
tree | 917923efb4e25f265b07a96f5799161ebb45cb16 /src/IO/http.c | |
parent | 8036421be353c40a17733a6c8b3c9236edc61e20 (diff) |
query string, more of following firefox's pattern
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 0a235f57..a0021a9e 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -326,7 +326,6 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester, "GET %s HTTP/1.1\r\n" "Host: %s\r\n" "User-Agent: %s\r\n" - "%s" "Accept: %s\r\n" "%s" /* language */ "Accept-Encoding: gzip, deflate\r\n" @@ -335,13 +334,15 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester, "%s" /* proxy auth */ "%s" /* referer */ "Connection: close\r\n" + "%s" /* cache control */ "%s" /* cookies */ "\r\n", request_uri->str, URL_AUTHORITY(url), prefs.http_user_agent, - (URL_FLAGS(url) & URL_E2EQuery) ? - "Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "", accept_hdr_value, HTTP_Language_hdr, auth ? auth : "", - proxy_auth->str, referer, cookies); + proxy_auth->str, referer, + (URL_FLAGS(url) & URL_E2EQuery) ? + "Pragma: no-cache\r\nCache-Control: no-cache\r\n" : "", + cookies); } dFree(referer); dFree(cookies); |