| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f9f75fb commit e363947
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,15 +78,18 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod, | |||
| 78 | 78 | ||
| 79 | 79 | if (iConnectionClose || !iClient->connected()) | |
| 80 | 80 | { | |
| 81 | - if (iServerName) { | ||
| 81 | + if (iServerName) | ||
| 82 | + { | ||
| 82 | 83 | if (!iClient->connect(iServerName, iServerPort) > 0) | |
| 83 | 84 | { | |
| 84 | 85 | #ifdef LOGGING | |
| 85 | 86 | Serial.println("Connection failed"); | |
| 86 | 87 | #endif | |
| 87 | 88 | return HTTP_ERROR_CONNECTION_FAILED; | |
| 88 | 89 | } | |
| 89 | - } else { | ||
| 90 | + } | ||
| 91 | + else | ||
| 92 | + { | ||
| 90 | 93 | if (!iClient->connect(iServerAddress, iServerPort) > 0) | |
| 91 | 94 | { | |
| 92 | 95 | #ifdef LOGGING | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -340,7 +340,8 @@ int WebSocketClient::read(uint8_t *aBuffer, size_t aSize) | |||
| 340 | 340 | // unmask the RX data if needed | |
| 341 | 341 | if (iRxMasked) | |
| 342 | 342 | { | |
| 343 | - for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) { | ||
| 343 | + for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) | ||
| 344 | + { | ||
| 344 | 345 | aBuffer[i] ^= iRxMaskKey[iRxMaskIndex % sizeof(iRxMaskKey)]; | |
| 345 | 346 | } | |
| 346 | 347 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments