Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from zwerch/master
Browse files Browse the repository at this point in the history
Add header as fix for #1
  • Loading branch information
bahlo committed Mar 14, 2015
2 parents 2de6d6e + fe3d899 commit af9af6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func WriteJSON(w http.ResponseWriter, v interface{}) error {
return err
}

w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Write(b)
return nil
}

0 comments on commit af9af6f

Please sign in to comment.