You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
already returns with http.StatusNotFound when name is /. This works when using the filesystem, but not for the embedded filesystem. Line 355, where the special handling for the root-URL should happen is thus never reached.
The text was updated successfully, but these errors were encountered:
Version
v0.0.0-20191006184023-c8e73f4f4df2
Describe the bug
Following https://github.com/kataras/iris/wiki/File-server and #1283, when serving from an embedded Filesystem like
with a file
./web/build/index.html
present, requestinghttp://localhost:8080/
results in a HTTP 404.To Reproduce
Steps to reproduce the behavior:
index.html
using go-bindataHandleDir
as described abovehttp://localhost:8080/
Expected behavior
Content of
index.html
should be returnedScreenshots
n/a
Desktop (please complete the following information):
n/a
Additional context
While debugging I found that the Handler returned from
FileServer
iniris/core/router/fs.go
Line 341 in c8e73f4
http.StatusNotFound
whenname
is/
. This works when using the filesystem, but not for the embedded filesystem. Line 355, where the special handling for the root-URL should happen is thus never reached.The text was updated successfully, but these errors were encountered: