Answer the question
In order to leave comments, you need to log in
How to fix problem with http.FileServer?
Today I encountered an unusual problem, not even a problem, but a glitch.
for development purposes, to return statics, I use http.FileServer like this:
goji.Get("/assets/*", http.StripPrefix("/assets/", http.FileServer(http.Dir(rootDir+"/assets"))))
Answer the question
In order to leave comments, you need to log in
Found the answer.
stackoverflow.com/questions/20702221/http-fileserv...
There is a problem with Vagrant and shared forder along the way. Exactly my case!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question