Skip to content

Commit

Permalink
feat: return correct header
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed May 5, 2023
1 parent 83307e4 commit 480d43b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (d *daemon) runCheck(writer http.ResponseWriter, uristr string) error {
}

writer.Header().Add("Access-Control-Allow-Origin", "*")
writer.Header().Add("Content-Type", "application/json")
_, err = writer.Write(outputData)
if err != nil {
fmt.Printf("could not return data over HTTP: %v\n", err.Error())
Expand Down

0 comments on commit 480d43b

Please sign in to comment.