summaryrefslogtreecommitdiff
path: root/lib/transfer.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-01 23:41:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-02 23:40:47 +0100
commit648712eec1eedb05965b9b4d6dd457bda5d70481 (patch)
treee696618bd90aa6ccbc743f88b72e760045fc8c56 /lib/transfer.h
parent725ec470e2ca5b1eb01ffee84d432653a8070722 (diff)
downloadcurl-648712eec1eedb05965b9b4d6dd457bda5d70481.tar.gz
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
Diffstat (limited to 'lib/transfer.h')
-rw-r--r--lib/transfer.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/transfer.h b/lib/transfer.h
index 178bb58fb..f8915dbd1 100644
--- a/lib/transfer.h
+++ b/lib/transfer.h
@@ -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,