From 29bfaaa190b4563c72a67511b2bccc69542cf063 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Jul 2000 21:15:01 +0000 Subject: [PATCH] set a bit when a Location: is followed to allow code to act differently on those occations --- lib/highlevel.c | 3 +++ 1 file changed, 3 insertions(+) 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,