mirror of
https://github.com/longsleep/realtimetraffic.git
synced 2024-12-22 13:32:18 +01:00
Allow HEAD for static resources
This commit is contained in:
parent
544eef0fa2
commit
0a1a93fdc7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue