Skip to content

Commit

Permalink
Merge pull request #1076 from complexmath/curl-fixes-01
Browse files Browse the repository at this point in the history
Disable SSL cert validation in curl client
  • Loading branch information
alexrp committed Jan 17, 2013
2 parents 86809da + f2eb096 commit 00c95c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/net/curl.d
Expand Up @@ -2071,6 +2071,7 @@ struct HTTP
p.curl.initialize();
maxRedirects = HTTP.defaultMaxRedirects;
p.charset = "ISO-8859-1"; // Default charset defined in HTTP RFC
p.curl.set(CurlOption.ssl_verifypeer, false);
p.method = Method.undefined;
dataTimeout = _defaultDataTimeout;
onReceiveHeader = null;
Expand Down Expand Up @@ -3048,7 +3049,7 @@ struct SMTP
/**
Sets to the URL of the SMTP server.
*/
this(string url)
this(const(char)[] url)
{
p.curl.initialize();
auto lowered = url.toLower();
Expand Down

0 comments on commit 00c95c1

Please sign in to comment.