Skip to content

Commit

Permalink
close file handler
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Sep 28, 2023
1 parent 23d3b1e commit 4ba02a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (cs *server) publishHandler(w http.ResponseWriter, r *http.Request, _ httpr
http.Error(w, http.StatusText(http.StatusRequestEntityTooLarge), http.StatusRequestEntityTooLarge)
return
}
defer body.Close()

cs.publish(msg)

Expand Down

0 comments on commit 4ba02a5

Please sign in to comment.