mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:23:32 +03:00
httpauth: make multi-request auth work with custom port
When doing HTTP authentication and a port number set with CURLOPT_PORT, the code would previously have the URL's port number override as if it had been a redirect to an absolute URL. Added test 1568 to verify. Reported-by: UrsusArctos on github Fixes #6397 Closes #6400
This commit is contained in:
parent
725ec470e2
commit
648712eec1
8 changed files with 158 additions and 13 deletions
|
|
@ -7,7 +7,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
|
||||
|
|
@ -36,9 +36,8 @@ typedef enum {
|
|||
allow initing to this */
|
||||
FOLLOW_FAKE, /* only records stuff, not actually following */
|
||||
FOLLOW_RETRY, /* set if this is a request retry as opposed to a real
|
||||
redirect following */
|
||||
FOLLOW_REDIR, /* a full true redirect */
|
||||
FOLLOW_LAST /* never used */
|
||||
redirect following */
|
||||
FOLLOW_REDIR /* a full true redirect */
|
||||
} followtype;
|
||||
|
||||
CURLcode Curl_follow(struct Curl_easy *data, char *newurl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue