OctoPrint upload: ignore certificate revocation checks

Fixes Hostname incorrect While test is positive (Bonjour discovery not
supported for the address field) #1781
(partial fix of #1781)
This commit is contained in:
Vojtech Bubnik 2021-08-24 11:24:48 +02:00
parent 0b654e1518
commit 6b03b66167
7 changed files with 35 additions and 3 deletions

View file

@ -80,6 +80,8 @@ public:
// Same as above except also override the file's filename with a custom one
Http& form_add_file(const std::string &name, const boost::filesystem::path &path, const std::string &filename);
Http& revoke_best_effort(bool set);
// Set the file contents as a POST request body.
// The data is used verbatim, it is not additionally encoded in any way.
// This can be used for hosts which do not support multipart requests.