diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2019-02-01 13:41:28 +0000 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2019-02-01 13:44:58 +0000 |
| commit | 3ff0e7dbd4071d24d30329e404bf690bb70015e5 (patch) | |
| tree | dca0c1ff1bd64892277974e0380df8f19f51504e /Source/Core/Common/HttpRequest.h | |
| parent | a129d60a570c73b614c02a3145bef42f2d329b64 (diff) | |
Common/HttpRequest: optionally follow redirects
Diffstat (limited to 'Source/Core/Common/HttpRequest.h')
| -rw-r--r-- | Source/Core/Common/HttpRequest.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/HttpRequest.h b/Source/Core/Common/HttpRequest.h index 94916f5c3c..17e31ff354 100644 --- a/Source/Core/Common/HttpRequest.h +++ b/Source/Core/Common/HttpRequest.h @@ -33,6 +33,7 @@ public: void SetCookies(const std::string& cookies); void UseIPv4(); + void FollowRedirects(long max = 1); Response Get(const std::string& url, const Headers& headers = {}); Response Post(const std::string& url, const std::vector<u8>& payload, const Headers& headers = {}); |
