diff options
Diffstat (limited to 'backends/networking/sdl_net/localwebserver.cpp')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/networking/sdl_net/localwebserver.cpp b/backends/networking/sdl_net/localwebserver.cpp index cac7dab8ac..d8f12b8220 100644 --- a/backends/networking/sdl_net/localwebserver.cpp +++ b/backends/networking/sdl_net/localwebserver.cpp @@ -50,7 +50,8 @@ LocalWebserver::LocalWebserver(): _set(nullptr), _serverSocket(nullptr), _timerS _defaultHandler = _resourceHandler.getHandler(); Reader reader; - reader.readResponse(); + reader.setBytesLeft(128); + while (!reader.readResponse()) reader.setBytesLeft(20); } LocalWebserver::~LocalWebserver() { |