1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-04-19 21:22:15 +03:00

Merge pull request #152 from tim-vandecasteele/tim-websocket-initialisation

Make sure to use HttpClient when upgrading the connection for websockets
This commit is contained in:
Andrea Gilardoni 2024-03-25 09:27:57 +01:00 committed by GitHub
commit 0ec8824e58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,7 +422,7 @@ int HttpClient::responseStatusCode()
{ {
if (available()) if (available())
{ {
c = read(); c = HttpClient::read();
if (c != -1) if (c != -1)
{ {
switch(iState) switch(iState)
@ -763,7 +763,7 @@ int HttpClient::read(uint8_t *buf, size_t size)
int HttpClient::readHeader() int HttpClient::readHeader()
{ {
char c = read(); char c = HttpClient::read();
if (endOfHeadersReached()) if (endOfHeadersReached())
{ {