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/getinfo.c | |
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/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 67ea07d2e..f531631b8 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -235,7 +235,7 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info, break; #endif case CURLINFO_REDIRECT_COUNT: - *param_longp = data->set.followlocation; + *param_longp = data->state.followlocation; break; case CURLINFO_HTTPAUTH_AVAIL: lptr.to_long = param_longp; |