Skip to content

Commit a2352cc

Browse files
committed
fix: return response content-type header as json
1 parent 9d997ba commit a2352cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/server.go

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func NewServer(db database.Provider, memeManager *meme.Manager) *Server {
2525
}
2626

2727
func (s *Server) Markets(w http.ResponseWriter, r *http.Request) {
28+
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
2829
t := r.FormValue("time")
2930
var ti time.Time
3031
if t != "" {

0 commit comments

Comments
 (0)