From 5e3a9379a0269bce9d4f901273f2dd67adf70e7b Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Fri, 9 Nov 2018 02:54:51 +0900 Subject: [PATCH] Fix webfinger handler. --- handle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle.go b/handle.go index c5cfdb4..069cc4f 100644 --- a/handle.go +++ b/handle.go @@ -15,7 +15,7 @@ import ( func handleWebfinger(w http.ResponseWriter, r *http.Request) { resource := r.URL.Query()["resource"] - if r.Method == "GET" && len(resource) == 0 { + if r.Method != "GET" || len(resource) == 0 { w.WriteHeader(400) w.Write(nil) } else {