Skip to content

Commit

Permalink
exp/lighthorizon: Add JSON content type to responses. (#4509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Aug 5, 2022
1 parent 67b94b5 commit 1c2072b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exp/lighthorizon/actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func sendPageResponse(w http.ResponseWriter, page hal.Page) {
if err != nil {
log.Error(err)
sendErrorResponse(w, http.StatusInternalServerError, "")
} else {
w.Header().Set("Content-Type", "application/hal+json; charset=utf-8")
}
}

Expand Down

0 comments on commit 1c2072b

Please sign in to comment.