From ae3891c57e18119da3658f9c637037acfeef0533 Mon Sep 17 00:00:00 2001 From: ajmandourah Date: Mon, 14 Oct 2024 08:02:02 +0300 Subject: [PATCH] test response status --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a8065b8..65622f6 100644 --- a/main.go +++ b/main.go @@ -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