diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2018-05-29 14:42:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-29 14:42:24 +0200 |
| commit | 00d91db2ecea24b807e09e355fd7dad9c72d9ca1 (patch) | |
| tree | 547063f074f25be413a7d23b0e2df017b15710d2 /Source/Core/Common/HttpRequest.h | |
| parent | 86bbf540cfabc823b36446267ad7a29dfca06ed0 (diff) | |
| parent | c086f894b1954efc371d652ef20002868b778fe9 (diff) | |
Merge pull request #7008 from spycrab/ddos_sux
Fix "Download Codes" hitting DDOS protection
Diffstat (limited to 'Source/Core/Common/HttpRequest.h')
| -rw-r--r-- | Source/Core/Common/HttpRequest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/HttpRequest.h b/Source/Core/Common/HttpRequest.h index 92bae2307e..fefb54c784 100644 --- a/Source/Core/Common/HttpRequest.h +++ b/Source/Core/Common/HttpRequest.h @@ -30,6 +30,8 @@ public: using Response = std::optional<std::vector<u8>>; using Headers = std::map<std::string, std::optional<std::string>>; + + void SetCookies(const std::string& cookies); Response Get(const std::string& url, const Headers& headers = {}); Response Post(const std::string& url, const std::vector<u8>& payload, const Headers& headers = {}); |
