catchAll handler not working #12
Description
Many thanks for this great library ! I was able to port an existing not-too-small ESP8266 project to RP within few hours. This project even includes Web sockets, and everything seemed to work fine until I happened to enter a non-existing url.
In order to exclude any self-made nonsense, I tried the same situation with the example program that comes with the library, and found the same problem.
Describe the bug
There is no visible response in the browser when requesting a non-existing url.
Steps to Reproduce
Compile the original example Async_AdvancedWebServer.ino, nothing changed but ssid[] and pass[].
Enter the IP in the browser (e.g. 192.168.100.121) and see the correct page, with the nice animated diagram.
Enter the prepared alternative url (e.g. 192.168.100.121/inline) and see the correct response text "This works as well".
But:
Try any other url (e.g. 192.168.100.121/xyz.htm) and see nothing but a blank screen! The Firefox debugging tool explains that the http response code is 501, and content length is 0.
Expected behavior
Looking into the function handleNotFound() in the example code, we would expect a text like "File Not Found", the uri and the http method GET. Moreover, the http response should be 404.
Actual behavior
(see "steps to reproduce")
Debug and AT-command log (if applicable)
(n.a.)
Screenshots
(n.a.)
Supporting information:
Library v1.4.1
Arduino IDE 1.8.19
RP2040 core v2.7.1
RASPBERRY_PI_PICO_W
Windows 7 64bit
Dell Latitude E6530