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:
commit
0ec8824e58
@ -422,7 +422,7 @@ int HttpClient::responseStatusCode()
|
||||
{
|
||||
if (available())
|
||||
{
|
||||
c = read();
|
||||
c = HttpClient::read();
|
||||
if (c != -1)
|
||||
{
|
||||
switch(iState)
|
||||
@ -763,7 +763,7 @@ int HttpClient::read(uint8_t *buf, size_t size)
|
||||
|
||||
int HttpClient::readHeader()
|
||||
{
|
||||
char c = read();
|
||||
char c = HttpClient::read();
|
||||
|
||||
if (endOfHeadersReached())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user