diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 23:00:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-09 08:22:45 +0100 |
commit | f1e5e498796d3f71e3c22e9406796e9ab6c82d1f (patch) | |
tree | 53d10bb45f71b1895eddccd2b14454d6f6fa3478 /lib/urldata.h | |
parent | 13d8a5640859c2d2c99f255c27bb79e86edbef27 (diff) | |
download | curl-f1e5e498796d3f71e3c22e9406796e9ab6c82d1f.tar.gz |
urldata: move 'followlocation' to UrlState
As this is a state variable it does not belong in UserDefined which is
used to store values set by the user.
Closes #6582
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 0d03cf11c..c2f3128d2 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1337,6 +1337,7 @@ struct UrlState { unsigned int tempcount; /* number of entries in use in tempwrite, 0 - 3 */ int os_errno; /* filled in with errno whenever an error occurs */ char *scratch; /* huge buffer[set.buffer_size*2] for upload CRLF replacing */ + long followlocation; /* redirect counter */ #ifdef HAVE_SIGNAL /* storage for the previous bag^H^H^HSIGPIPE signal handler :-) */ void (*prev_signal)(int sig); @@ -1619,7 +1620,6 @@ struct UserDefined { unsigned long httpauth; /* kind of HTTP authentication to use (bitmask) */ unsigned long proxyauth; /* kind of proxy authentication to use (bitmask) */ unsigned long socks5auth;/* kind of SOCKS5 authentication to use (bitmask) */ - long followlocation; /* as in HTTP Location: */ long maxredirs; /* maximum no. of http(s) redirects to follow, set to -1 for infinity */ |