1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-08-13 23:02:22 +03:00

Wrap proxy member var declarations in #ifdef

This commit is contained in:
Sandeep Mistry
2016-06-17 10:02:32 -04:00
parent b72b7056a9
commit ad9bd94136
2 changed files with 3 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ HttpClient::HttpClient(Client& aClient, const char* aProxy, uint16_t aProxyPort)
} }
#else #else
HttpClient::HttpClient(Client& aClient) HttpClient::HttpClient(Client& aClient)
: iClient(&aClient), iProxyPort(0) : iClient(&aClient)
{ {
resetState(); resetState();
} }

View File

@@ -440,9 +440,11 @@ protected:
int iBodyLengthConsumed; int iBodyLengthConsumed;
// How far through a Content-Length header prefix we are // How far through a Content-Length header prefix we are
const char* iContentLengthPtr; const char* iContentLengthPtr;
#ifdef PROXY_ENABLED
// Address of the proxy to use, if we're using one // Address of the proxy to use, if we're using one
IPAddress iProxyAddress; IPAddress iProxyAddress;
uint16_t iProxyPort; uint16_t iProxyPort;
#endif
uint32_t iHttpResponseTimeout; uint32_t iHttpResponseTimeout;
}; };