Skip to content
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

fix/security: http.FileServer lists directory #2

Open
roshnet opened this issue May 10, 2020 · 0 comments
Open

fix/security: http.FileServer lists directory #2

roshnet opened this issue May 10, 2020 · 0 comments

Comments

@roshnet
Copy link
Owner

roshnet commented May 10, 2020

Using http.FileServer works well, but reveals directory content if the URL is tampered with.

Possible options

  • Maybe try http.ServeFile instead (given it's dangerous theoretically)?
  • Write own custom handler to serve static files?
  • IDK!
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

1 participant