summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-10-21 10:01:52 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-10-21 10:03:46 +0100
commita5766db2b9516dbf02cf2d023d777aef4e0470c1 (patch)
treee68c8cdbe4d8f4d6be79241ea8299959911a806b
parent813d0c70fe06090256b09356869f07e238c986a1 (diff)
downloadnetsurf-a5766db2b9516dbf02cf2d023d777aef4e0470c1.tar.gz
netsurf-a5766db2b9516dbf02cf2d023d777aef4e0470c1.tar.bz2
fetchers/curl: Restrict AUTH to BASIC
cURL will prevent channel reuse if NTLM auth is enabled because NTLM authenticates a channel not a request. As such we were unable to reuse curl handles since we handed off connection reuse to curl instead of our own handle cache. This mitigates the effect, though curl authors are looking at fixing it upstream too. Fixes: #2707 Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--content/fetchers/curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index f24e3de86..2644c68d4 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -840,7 +840,7 @@ static CURLcode fetch_curl_set_options(struct curl_fetch_info *f)
}
if ((auth = urldb_get_auth_details(f->url, NULL)) != NULL) {
- SETOPT(CURLOPT_HTTPAUTH, CURLAUTH_ANY);
+ SETOPT(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
SETOPT(CURLOPT_USERPWD, auth);
} else {
SETOPT(CURLOPT_USERPWD, NULL);