Skip to content

Commit

Permalink
test response status
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmandourah committed Oct 14, 2024
1 parent 728b48c commit ae3891c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ func serveCollection(w http.ResponseWriter, tinfoilCollection interface{}) {
return
}

w.WriteHeader(http.StatusOK)
_, _ = w.Write(jsonResponse)
// w.WriteHeader(http.StatusOK)
_, err := w.Write(jsonResponse)
if err != nil {
log.Println(err)
}
}

// HomeHandler handles list of games
Expand Down

0 comments on commit ae3891c

Please sign in to comment.