Skip to content

Commit

Permalink
Set content-type text/plain
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones authored Jan 31, 2025
1 parent a681cdc commit 1ebf98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/httputils/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func writeBanResponse(w http.ResponseWriter, statusCode int) error {
if code <= 0 {
code = http.StatusForbidden
}

w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(code)
return nil
}
Expand Down

0 comments on commit 1ebf98f

Please sign in to comment.