Skip to content

Commit

Permalink
🍱 Add comment to warn future developer
Browse files Browse the repository at this point in the history
  • Loading branch information
max.lerebourg committed May 16, 2024
1 parent 8fbf268 commit 9f77f70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bouncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ type Login struct {
Expire string `json:"expire"`
}

// To append Headers we need to call rw.WriteHeader after set any header.
func handleBanServeHTTP(bouncer *Bouncer, rw http.ResponseWriter) {
if bouncer.banTemplateString == "" {
rw.WriteHeader(http.StatusForbidden)
Expand Down

0 comments on commit 9f77f70

Please sign in to comment.