Skip to content

Commit 0a3e61a

Browse files
authored
Update HttpClient.cpp
Add 443 port for HTTPS requests
1 parent 09ecf29 commit 0a3e61a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/HttpClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int HttpClient::sendInitialHeaders(const char* aURLPath, const char* aHttpMethod
161161
{
162162
iClient->print("Host: ");
163163
iClient->print(iServerName);
164-
if (iServerPort != kHttpPort)
164+
if (iServerPort != kHttpPort && iServerPort != kHttpsPort)
165165
{
166166
iClient->print(":");
167167
iClient->print(iServerPort);

0 commit comments

Comments
 (0)