summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-08 16:17:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-10 14:51:33 +0100
commit8b2dec6ab771c74815ae6d3358c8e58cf7815f23 (patch)
tree9146fb742b1fd4dd1b6c6e599fe230b0c83a3441 /lib/rtsp.c
parent83f1ca69290f9d6198fe4013488408f94736c5dc (diff)
downloadcurl-8b2dec6ab771c74815ae6d3358c8e58cf7815f23.tar.gz
http: make 'authneg' also work for Hyper
When doing a request with a request body expecting a 401/407 back, that initial request is sent with a zero content-length. Test 177 and more. Closes #6424
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index e9ee2b36b..a7299e12b 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -385,7 +385,8 @@ static CURLcode rtsp_do(struct connectdata *conn, bool *done)
}
/* setup the authentication headers */
- result = Curl_http_output_auth(conn, p_request, p_stream_uri, FALSE);
+ result = Curl_http_output_auth(conn, p_request, HTTPREQ_GET,
+ p_stream_uri, FALSE);
if(result)
return result;