Commit eb985713 authored by Matthew Holt's avatar Matthew Holt

staticfiles: Re-allow HEAD requests

parent c1d6c928
......@@ -53,7 +53,7 @@ type FileServer struct {
// ServeHTTP serves static files for r according to fs's configuration.
func (fs FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
if r.Method != "GET" {
if r.Method != "GET" && r.Method != "OPTIONS" {
return http.StatusMethodNotAllowed, nil
}
return fs.serveFile(w, r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment