Skip to content

Commit 0ec8824

Browse files
Merge pull request #152 from tim-vandecasteele/tim-websocket-initialisation
Make sure to use HttpClient when upgrading the connection for websockets
2 parents 9ddfad1 + 8566fb4 commit 0ec8824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ int HttpClient::responseStatusCode()
422422
{
423423
if (available())
424424
{
425-
c = read();
425+
c = HttpClient::read();
426426
if (c != -1)
427427
{
428428
switch(iState)
@@ -763,7 +763,7 @@ int HttpClient::read(uint8_t *buf, size_t size)
763763

764764
int HttpClient::readHeader()
765765
{
766-
char c = read();
766+
char c = HttpClient::read();
767767

768768
if (endOfHeadersReached())
769769
{

0 commit comments

Comments
 (0)