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
(or "/files/" with a trailing slash), everything 404s at any reasonable URL to test, the directory indexes don't work and so forth. I tried /file.txt, /files, /files/, /files/file.txt and several other variations. Am I instantiating something wrong, or is there a path issue here?
The text was updated successfully, but these errors were encountered:
You probably want to use http.StipPrefix() (http://golang.org/pkg/net/http/#StripPrefix)
e.g.: http.Handle("/files/", http.StripPrefix("/files/", http.FileServer(box.HTTPBox())))
Using example.go from this repo as is works just fine. If I change:
to
(or "/files/" with a trailing slash), everything 404s at any reasonable URL to test, the directory indexes don't work and so forth. I tried /file.txt, /files, /files/, /files/file.txt and several other variations. Am I instantiating something wrong, or is there a path issue here?
The text was updated successfully, but these errors were encountered: