summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-11-11 08:47:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-12 00:12:46 +0100
commitfa0b9227616e17b7949ed0063d16bc7398474671 (patch)
treef13ee275c1c9631d3993a2461c6e0d75be01d663 /lib/transfer.c
parent83c4c1a056ddee1fe3161a783d685b72ed7eebd2 (diff)
downloadcurl-fa0b9227616e17b7949ed0063d16bc7398474671.tar.gz
http: mark it 'this_is_a_follow' in the Location: logic
To make regular auth "reloads" to not count as redirects. Verified by test 3101 Fixes #9885 Closes #9887
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 5ced15698..34f837c90 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1607,10 +1607,8 @@ CURLcode Curl_follow(struct Curl_easy *data,
to URL */
}
else {
- /* mark the next request as a followed location: */
- data->state.this_is_a_follow = TRUE;
-
- data->state.followlocation++; /* count location-followers */
+ data->state.followlocation++; /* count redirect-followings, including
+ auth reloads */
if(data->set.http_auto_referer) {
CURLU *u;