Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
X-Access-Key -> X-Access
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Apr 4, 2019
1 parent bf5455e commit d370955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d370955

Please sign in to comment.