summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-07-25 21:15:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-07-25 21:15:01 +0000
commit29bfaaa190b4563c72a67511b2bccc69542cf063 (patch)
tree24a35716a348a57602ae3a977ad85fb4167441f3 /lib
parent18853542a102a4a8be5fa139886b02e84f55d9af (diff)
downloadcurl-29bfaaa190b4563c72a67511b2bccc69542cf063.tar.gz
set a bit when a Location: is followed to allow code to act differently
on those occations
Diffstat (limited to 'lib')
-rw-r--r--lib/highlevel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/highlevel.c b/lib/highlevel.c
index 02954c6b5..aeaa81a70 100644
--- a/lib/highlevel.c
+++ b/lib/highlevel.c
@@ -614,6 +614,9 @@ CURLcode curl_transfer(CURL *curl)
char prot[16];
char path[URL_MAX_LENGTH];
+ /* mark the next request as a followed location: */
+ data->bits.this_is_a_follow = TRUE;
+
if(data->bits.http_auto_referer) {
/* We are asked to automatically set the previous URL as the
referer when we get the next URL. We pick the ->url field,