diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 23:00:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 23:01:21 +0100 |
commit | 496c59e5ec47db59aff443d6b4be2645f7504b93 (patch) | |
tree | 76b4a74c5d1e9f6f27cefc01cedf10b1d8f010f1 /lib/getinfo.c | |
parent | 0c51036eb6ddef50a1730bdd33a4388b35343125 (diff) | |
download | curl-bagder/urldata-redirect-counter.tar.gz |
urldata: move 'followlocation' to UrlStatebagder/urldata-redirect-counter
As this is a state variable it does not belong in UserDefined which is
used to store values set by the user.
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; |