Skip to content

Commit 9ddfad1

Browse files
authoredMar 22, 2024··
Merge pull request #161 from kodav/Add-443-port-for-HTTPS-requests
Add 443 port for https requests
2 parents 606a567 + ab3d000 commit 9ddfad1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/HttpClient.cpp

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

‎src/HttpClient.h

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class HttpClient : public Client
4343
public:
4444
static const int kNoContentLengthHeader =-1;
4545
static const int kHttpPort =80;
46+
static const int kHttpsPort =443;
4647
static const char* kUserAgent;
4748

4849
// FIXME Write longer API request, using port and user-agent, example

0 commit comments

Comments
 (0)
Please sign in to comment.