Skip to content

Commit

Permalink
set content-type application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Dec 6, 2024
1 parent 25eaea6 commit 9516ac5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stiller-backend/internal/handlers/get_gallery_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9516ac5

Please sign in to comment.