From: Daniel Stenberg Date: Tue, 25 Jul 2000 21:15:01 +0000 (+0000) Subject: set a bit when a Location: is followed to allow code to act differently X-Git-Tag: curl-7_1_1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29bfaaa190b4563c72a67511b2bccc69542cf063;p=thirdparty%2Fcurl.git set a bit when a Location: is followed to allow code to act differently on those occations --- diff --git a/lib/highlevel.c b/lib/highlevel.c index 02954c6b55..aeaa81a70e 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,