diff options
author | corvid <devnull@localhost> | 2014-07-17 03:26:00 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-07-17 03:26:00 +0000 |
commit | 531843c893ae53a61d7278630a5061a63a251ded (patch) | |
tree | 83edff4ea0cf1dc00e795d98bf591f4eebe041ae /src/IO/http.c | |
parent | e75e4a0217096ebd7f425278403ab687911b0bb6 (diff) |
http_persistent_conns preference
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 917cb95e..1be94e0d 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -291,7 +291,8 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester, "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; const char *connection_hdr_val = - dStrAsciiCasecmp(URL_SCHEME(url), "http") == 0 ? "keep-alive" : "close"; + (prefs.http_persistent_conns == TRUE && + !dStrAsciiCasecmp(URL_SCHEME(url), "http")) ? "keep-alive" : "close"; if (use_proxy) { dStr_sprintfa(request_uri, "%s%s", |