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.c3
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",