Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4230aec

Browse filesBrowse files
committed
Allow HTTPClient to access HTTPS without providing a certificate
1 parent af35773 commit 4230aec
Copy full SHA for 4230aec

File tree

Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed

‎libraries/HTTPClient/src/HTTPClient.cpp

Copy file name to clipboardExpand all lines: libraries/HTTPClient/src/HTTPClient.cpp
-4Lines changed: 0 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.