Skip to content

Error while loading index.htm using serveStatic #1105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tbnobody opened this issue Nov 29, 2015 · 2 comments
Closed

Error while loading index.htm using serveStatic #1105

tbnobody opened this issue Nov 29, 2015 · 2 comments

Comments

@tbnobody
Copy link

When using the webserver with serveStatic:
server.serveStatic("", SPIFFS, "");
and making a request like
http://esp8266/
it seems that the index.htm file isn't appended. If I look to the code:
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h#L84
I would say we have to check the requestUri instead of path? Because path refers to the file system, but index.htm should be added to the user request!

@sticilface
Copy link
Contributor

See
#1085

@igrr
Copy link
Member

igrr commented Nov 30, 2015

Fixed in a6e01b8

@igrr igrr closed this as completed Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants