| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons | |||
| 55 | 55 | ||
| 56 | 56 | if (iProxyPort) | |
| 57 | 57 | { | |
| 58 | - if (!iClient->connect(iProxyAddress, iProxyPort)) | ||
| 58 | + if (!iClient->connect(iProxyAddress, iProxyPort) > 0) | ||
| 59 | 59 | { | |
| 60 | 60 | #ifdef LOGGING | |
| 61 | 61 | Serial.println("Proxy connection failed"); | |
@@ -65,7 +65,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons | |||
| 65 | 65 | } | |
| 66 | 66 | else | |
| 67 | 67 | { | |
| 68 | - if (!iClient->connect(aServerName, aServerPort)) | ||
| 68 | + if (!iClient->connect(aServerName, aServerPort) > 0) | ||
| 69 | 69 | { | |
| 70 | 70 | #ifdef LOGGING | |
| 71 | 71 | Serial.println("Connection failed"); | |
@@ -87,7 +87,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo | |||
| 87 | 87 | ||
| 88 | 88 | if (iProxyPort) | |
| 89 | 89 | { | |
| 90 | - if (!iClient->connect(iProxyAddress, iProxyPort)) | ||
| 90 | + if (!iClient->connect(iProxyAddress, iProxyPort) > 0) | ||
| 91 | 91 | { | |
| 92 | 92 | #ifdef LOGGING | |
| 93 | 93 | Serial.println("Proxy connection failed"); | |
@@ -97,7 +97,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo | |||
| 97 | 97 | } | |
| 98 | 98 | else | |
| 99 | 99 | { | |
| 100 | - if (!iClient->connect(aServerAddress, aServerPort)) | ||
| 100 | + if (!iClient->connect(aServerAddress, aServerPort) > 0) | ||
| 101 | 101 | { | |
| 102 | 102 | #ifdef LOGGING | |
| 103 | 103 | Serial.println("Connection failed"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -277,7 +277,6 @@ class HttpClient : public Client | |||
| 277 | 277 | ||
| 278 | 278 | // Inherited from Print | |
| 279 | 279 | virtual size_t write(uint8_t aByte) { return iClient-> write(aByte); }; | |
| 280 | - virtual size_t write(const char *aStr) { return iClient->write(aStr); }; | ||
| 281 | 280 | virtual size_t write(const uint8_t *aBuffer, size_t aSize) { return iClient->write(aBuffer, aSize); }; | |
| 282 | 281 | // Inherited from Stream | |
| 283 | 282 | virtual int available() { return iClient->available(); }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments