mirror of
https://github.com/curl/curl.git
synced 2026-06-24 15:45:38 +03:00
set a bit when a Location: is followed to allow code to act differently
on those occations
This commit is contained in:
parent
18853542a1
commit
29bfaaa190
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue