Skip to content

Commit ac8eddf

Browse files
authored
Make max payload size 2gb, no more payload error
1 parent ee9a145 commit ac8eddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3665,7 +3665,7 @@ std::string KeyAuth::api::req(std::string data, const std::string& url) {
36653665
if (KeyAuth::api::debug) {
36663666
debugInfo("n/a", "n/a", to_return, "n/a");
36673667
}
3668-
if (to_return.size() > (2 * 1024 * 1024)) {
3668+
if (to_return.size() > (2ULL * 1024ULL * 1024ULL * 1024ULL)) {
36693669
if (req_headers) curl_slist_free_all(req_headers);
36703670
curl_easy_cleanup(curl);
36713671
error(XorStr("response too large."));

0 commit comments

Comments
 (0)