From d370955148e75e16023e44bc7218b274c56bcbc1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 4 Apr 2019 13:26:23 +0000 Subject: [PATCH] X-Access-Key -> X-Access --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index 70e32c8..c18b821 100644 --- a/auth.go +++ b/auth.go @@ -8,7 +8,7 @@ import ( ) func auth(r *http.Request) error { - if r.Header.Get("X-Access-Key") == accessKey { + if r.Header.Get("X-Access") == accessKey { return nil } if r.URL.Query().Get("access-key") == accessKey {