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-01 23:45:28 +0100
commit60caf49069b88871f130e2b9a74ade86278ce7bc (patch)
treee820a72305a4da7ac7210f2ce3e1159d185ec3d4 /lib/transfer.h
parent275c28e6502e1ded6c62b5bf22a409de16b4a04e (diff)
downloadcurl-60caf49069b88871f130e2b9a74ade86278ce7bc.tar.gz
httpauth: make multi-request auth work with custom portbagder/multi-stage-auth-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
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,