diff options
author | Vojtech Kral <vojtech@kral.hk> | 2018-06-27 11:34:21 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-06-27 14:57:21 +0300 |
commit | 930a2f1d1203ae8c5205b9fcacb70368b9deebb9 (patch) | |
tree | 954dc4d5f125c5753406d8d86cc580f58d0c7fcc /xs | |
parent | 6706c3b71f49ee82c9f027b027d62bb75feb049d (diff) |
Fix: Http: Body size limit not properly initialized
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/slic3r/Utils/Http.cpp | 1 | ||||
-rw-r--r-- | xs/src/slic3r/Utils/Http.hpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/xs/src/slic3r/Utils/Http.cpp b/xs/src/slic3r/Utils/Http.cpp index 47021d39f..949a0e7d6 100644 --- a/xs/src/slic3r/Utils/Http.cpp +++ b/xs/src/slic3r/Utils/Http.cpp @@ -71,6 +71,7 @@ Http::priv::priv(const std::string &url) : form(nullptr), form_end(nullptr), headerlist(nullptr), + limit(0), cancel(false) { if (curl == nullptr) { diff --git a/xs/src/slic3r/Utils/Http.hpp b/xs/src/slic3r/Utils/Http.hpp index 73656bf88..7c2bd84fc 100644 --- a/xs/src/slic3r/Utils/Http.hpp +++ b/xs/src/slic3r/Utils/Http.hpp @@ -46,7 +46,8 @@ public: Http& operator=(const Http &) = delete; Http& operator=(Http &&) = delete; - // Sets a maximum size of the data that can be received. The default is 5MB. + // Sets a maximum size of the data that can be received. + // A value of zero sets the default limit, which is is 5MB. Http& size_limit(size_t sizeLimit); // Sets a HTTP header field. Http& header(std::string name, const std::string &value); |