summaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c9
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);