From 554176b97fadf7d67d320dbd2777c7877ce3013c Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Mon, 15 Apr 2019 13:36:20 +0200 Subject: [PATCH] Http: Fix redirecting of post requests, fix #2018 --- src/slic3r/Utils/Http.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp index 801c5cf40..79c4ecfa9 100644 --- a/src/slic3r/Utils/Http.cpp +++ b/src/slic3r/Utils/Http.cpp @@ -228,6 +228,7 @@ std::string Http::priv::body_size_error() void Http::priv::http_perform() { ::curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + ::curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL); ::curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writecb); ::curl_easy_setopt(curl, CURLOPT_WRITEDATA, static_cast(this)); ::curl_easy_setopt(curl, CURLOPT_READFUNCTION, form_file_read_cb);