From 9516ac57987aa1d152ad2c8c463ab3164b04c136 Mon Sep 17 00:00:00 2001 From: Paolo Flores Date: Fri, 6 Dec 2024 12:13:19 -0500 Subject: [PATCH] set content-type application/json --- stiller-backend/internal/handlers/get_gallery_detail.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stiller-backend/internal/handlers/get_gallery_detail.go b/stiller-backend/internal/handlers/get_gallery_detail.go index 7fc8ccd..f560eeb 100644 --- a/stiller-backend/internal/handlers/get_gallery_detail.go +++ b/stiller-backend/internal/handlers/get_gallery_detail.go @@ -71,6 +71,8 @@ func GetGalleryDetail(w http.ResponseWriter, r *http.Request, params httprouter. Args: get_gallery.Args(), }) + w.Header().Set("Content-Type", "application/json") + if gallery.Id == 0 { loggers.RequestLog(nil, "gallery not found", http.StatusNotFound, &w) return