Skip to content

Commit 4230aec

Browse files
committed
Allow HTTPClient to access HTTPS without providing a certificate
1 parent af35773 commit 4230aec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libraries/HTTPClient/src/HTTPClient.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,10 @@ bool HTTPClient::begin(String url, const char* CAcert)
107107
{
108108
_transportTraits.reset(nullptr);
109109
_port = 443;
110-
if (strlen(CAcert) == 0) {
111-
return false;
112-
}
113110
if (!beginInternal(url, "https")) {
114111
return false;
115112
}
116113
_transportTraits = TransportTraitsPtr(new TLSTraits(CAcert));
117-
//log_d("[HTTP-Client][begin] CAcert: %s", CAcert.c_str());
118114
return true;
119115
}
120116

0 commit comments

Comments
 (0)