Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
rehacktive committed Nov 30, 2022
1 parent 331b48c commit 27a10d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (p *Payload) wrap() (content []byte, err error) {
func respondWithJSON(w http.ResponseWriter, code int, jsonContent string) {
w.Header().Set("Content-Type", "application/json")

// w.WriteHeader(code)
w.WriteHeader(code)
_, err := w.Write([]byte(jsonContent))
if err != nil {
log.Println("error sending response: ", err)
Expand Down

0 comments on commit 27a10d3

Please sign in to comment.