We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b594b0 commit aa40a10Copy full SHA for aa40a10
libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
@@ -851,7 +851,7 @@ bool HTTPClient::connect(void)
851
DEBUG_HTTPCLIENT("[HTTP-Client] connect: already connected, reusing connection\n");
852
853
#if defined(NO_GLOBAL_INSTANCES)
854
- StreamNull devnull;
+ static StreamNull devnull;
855
#endif
856
_client->sendAvailable(devnull); // clear _client's output (all of it, no timeout)
857
return true;
0 commit comments