mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 12:04:36 -04:00
Merge branch 'main' of https://github.com/geode-sdk/geode into main
This commit is contained in:
commit
5c418c7052
1 changed files with 2 additions and 0 deletions
|
@ -328,6 +328,8 @@ WebTask WebRequest::send(std::string_view method, std::string_view url) {
|
|||
|
||||
// Follow redirects
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
// don't change the method from POST to GET when following a redirect
|
||||
curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
|
||||
// Do not fail if response code is 4XX or 5XX
|
||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0L);
|
||||
|
|
Loading…
Add table
Reference in a new issue