1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-08-12 12:02:43 +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
HttpClient::HttpClient(Client& aClient)
: iClient(&aClient), iProxyPort(0)
: iClient(&aClient)
{
resetState();
}

View File

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