Skip to content

Commit

Permalink
Fix error message for invalid admin auth
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwhitman committed Sep 18, 2014
1 parent 29e7a90 commit 9fdfdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware_api_security_handler.go
Expand Up @@ -14,7 +14,7 @@ func CheckIsAPIOwner(handler func(http.ResponseWriter, *http.Request)) func(http
// Error
log.Warning("Attempted administrative access with invalid or missing key!")

responseMessage := createError("Method not supported")
responseMessage := createError("Forbidden")
w.WriteHeader(403)
fmt.Fprintf(w, string(responseMessage))

Expand Down

0 comments on commit 9fdfdfe

Please sign in to comment.