summaryrefslogtreecommitdiff
path: root/httpup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'httpup.cpp')
-rw-r--r--httpup.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/httpup.cpp b/httpup.cpp
index 9b30999..56f1293 100644
--- a/httpup.cpp
+++ b/httpup.cpp
@@ -231,6 +231,10 @@ int HttpUp::exec(ExecType type)
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+ if (m_argParser.isSet(HttpupArgparser::OPT_INSECURE_SSL)) {
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
+ }
+
long timeout = DEFAULT_TIMEOUT;
if (config.operationTimeout != "") {

Generated by cgit