]> granicus.if.org Git - curl/commitdiff
set a bit when a Location: is followed to allow code to act differently
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jul 2000 21:15:01 +0000 (21:15 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jul 2000 21:15:01 +0000 (21:15 +0000)
on those occations

lib/highlevel.c

index 02954c6b558ba9e465ca12e91c93fdea8241f2e2..aeaa81a70e289dcf060a3929fb6d30b65f59c044 100644 (file)
@@ -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,