Allow HEAD for static resources

This commit is contained in:
Simon Eisenmann 2017-05-22 16:12:18 +02:00
parent 544eef0fa2
commit 0a1a93fdc7
1 changed files with 1 additions and 1 deletions

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
}