Description
Hello,
I'm using ESP32 Https Server on a WROOM-32 board.
I created a ResourceNode which serves an html page using GET method.
If I connect to that page using Chrome or Firefox from my PC it works without any problems.
The frontend for this project is managed by an Android application that connects to the ESP32 server through WiFi, using the WebView component.
Unfortunately, when the WebView component loads the page, the HTTP server hangs without logging anything.
If I turn on the debug log, I can see the headers coming in, but the "[HTTPS:D] Headers finished, FID=60" message doesn't show up and the HTTP server stalls in a not responding state.
After some debugging I found out a possible endless loop at this point:
esp32_https_server/src/HTTPConnection.cpp
Line 306 in daf6ca1
It seems that if the last char is "\r" and the condition at line 295 is not met, then an endless while loop occurs because _bufferProcessed will not be incremented.
I simply incremented the _bufferProcessed variable after line 306 in order to fix my problem.
I just wanted to make you aware of this, just in case you want to fix it in the next releases.
Thanks and congratulations for this excellent project!