You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I'm having some unexpected behaviour from mux.Handle/http.FileServer
interaction - I'm not sure if it's a bug, or if I'm mis-understanding.
I add the following FileServer:
http.Handle("/files/", http.FileServer(http.Dir("./file_store")))
I expect when I go to //host/files/ to get a list of the files in my
local subdirectory "file_store". Instead, this points to files in
"file_store/files"
Essentially the entire mux path is appended to the directory passed to
the FileServer. Is this correct behaviour? The composition is a
little surprising.
Paul
Andy Balholm
unread,
Sep 14, 2011, 1:52:23 PM9/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message