| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,7 +162,7 @@ int HttpClient::sendInitialHeaders(const char* aURLPath, const char* aHttpMethod | |||
| 162 | 162 | { | |
| 163 | 163 | iClient->print("Host: "); | |
| 164 | 164 | iClient->print(iServerName); | |
| 165 | - if (iServerPort != kHttpPort) | ||
| 165 | + if (iServerPort != kHttpPort && iServerPort != kHttpsPort) | ||
| 166 | 166 | { | |
| 167 | 167 | iClient->print(":"); | |
| 168 | 168 | iClient->print(iServerPort); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,6 +43,7 @@ class HttpClient : public Client | |||
| 43 | 43 | public: | |
| 44 | 44 | static const int kNoContentLengthHeader =-1; | |
| 45 | 45 | static const int kHttpPort =80; | |
| 46 | + static const int kHttpsPort =443; | ||
| 46 | 47 | static const char* kUserAgent; | |
| 47 | 48 | ||
| 48 | 49 | // FIXME Write longer API request, using port and user-agent, example | |
| Back | FazBrowse Home | New Git URL |
0 commit comments