Skip to content

Commit 30d333a

Browse files
committed
feat(serverHandler): respond with 405 for unacceptable method
1 parent b9aebf9 commit 30d333a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/mutate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
func (h *aliasHandler) mutate(w http.ResponseWriter, r *http.Request, data *responseData) {
99
if r.Method != http.MethodPost {
10-
w.WriteHeader(http.StatusBadRequest)
10+
w.WriteHeader(http.StatusMethodNotAllowed)
1111
return
1212
}
1313

0 commit comments

Comments
 (0)