summaryrefslogtreecommitdiff
path: root/lib/c-hyper.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-30 11:58:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-30 16:58:39 +0100
commitd538077e7010d70c573284696356e37f8eaee852 (patch)
tree6e7a31eb1b1a896cac5c833b1e227d58ccf635b6 /lib/c-hyper.c
parenta6d20b89db8ee79b1a5f8188a680fea8047b145e (diff)
downloadcurl-bagder/hyper-auth.tar.gz
c-hyper: make Digest and NTLM workbagder/hyper-auth
Test 64, 65, 67, 68, 69, 70, 72
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r--lib/c-hyper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c
index 5df2f0e19..2825e2ce9 100644
--- a/lib/c-hyper.c
+++ b/lib/c-hyper.c
@@ -374,6 +374,13 @@ static CURLcode hyperstream(struct Curl_easy *data,
break;
}
+ /* Curl_http_auth_act() checks what authentication methods that are
+ * available and decides which one (if any) to use. It will set 'newurl'
+ * if an auth method was picked. */
+ result = Curl_http_auth_act(conn);
+ if(result)
+ break;
+
resp_body = hyper_response_body(resp);
if(!resp_body) {
failf(data, "hyperstream: couldn't get response body");