Skip to content

Commit

Permalink
Set news content type
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Nov 21, 2024
1 parent 843ec8e commit d2c86fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/news/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ func List(w http.ResponseWriter, r *http.Request) {
return
}

w.Header().Set("Content-Type", "application/json")
w.Write(resp)
}

0 comments on commit d2c86fa

Please sign in to comment.