Skip to content

HTTPClient lib - add HTTPCLIENT_NOSECURE build flag #9893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update HTTPClient.cpp
  • Loading branch information
me-no-dev authored Jun 20, 2024
commit 04cadbd22eee2b797cde3502e47400da08bd735c
5 changes: 2 additions & 3 deletions libraries/HTTPClient/src/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ bool HTTPClient::begin(NetworkClient &client, String url) {
_secure = (protocol == "https");

#ifdef HTTPCLIENT_NOSECURE
return _secure ? false : beginInternal(url, protocol.c_str());
#else
return beginInternal(url, protocol.c_str());
if (_secure) return false;
#endif // HTTPCLIENT_NOSECURE
return beginInternal(url, protocol.c_str());
}

/**
Expand Down
Loading