]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
c-hyper: make Digest and NTLM work
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Dec 2020 10:58:39 +0000 (11:58 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Dec 2020 21:40:29 +0000 (22:40 +0100)
Test 64, 65, 67, 68, 69, 70, 72

Closes #6390

lib/c-hyper.c

index 5df2f0e1928c949c70abe218c0618bd1c0ba54ec..2825e2ce90e6a42e0c940d0099cac2273bb6af1a 100644 (file)
@@ -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");