Skip to content

Commit

Permalink
Do not support POST
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Oct 2, 2024
1 parent eccab9e commit 7f7c468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
func MessageHandler(w http.ResponseWriter, r *http.Request) {
slog.Info(r.RequestURI, "method", r.Method, "ip", r.RemoteAddr, "proto", r.Proto)

if r.Method != http.MethodGet && r.Method != http.MethodPost {
if r.Method != http.MethodGet {
w.WriteHeader(http.StatusMethodNotAllowed)
return
}
Expand Down

0 comments on commit 7f7c468

Please sign in to comment.