Skip to content

Commit

Permalink
Merge pull request #152 from tim-vandecasteele/tim-websocket-initiali…
Browse files Browse the repository at this point in the history
…sation

Make sure to use HttpClient when upgrading the connection for websockets
  • Loading branch information
andreagilardoni committed Mar 25, 2024
2 parents 9ddfad1 + 8566fb4 commit 0ec8824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ int HttpClient::responseStatusCode()
{
if (available())
{
c = read();
c = HttpClient::read();
if (c != -1)
{
switch(iState)
Expand Down Expand Up @@ -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())
{
Expand Down

0 comments on commit 0ec8824

Please sign in to comment.