Allow HEAD for static resources

This commit is contained in:
Simon Eisenmann 2017-05-22 16:12:18 +02:00
parent 544eef0fa2
commit 0a1a93fdc7

View file

@ -30,7 +30,7 @@ import (
var listenAddr *string
func serveClient(w http.ResponseWriter, r *http.Request) {
if r.Method != "GET" {
if r.Method != "GET" && r.Method != "HEAD" {
http.Error(w, "Method nod allowed", 405)
return
}