diff options
author | Andrew Gerrand <adg@golang.org> | 2013-05-08 08:31:05 -0700 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-05-08 08:31:05 -0700 |
commit | a2bb28375a16386a8e12d7933d164c3196f6f1b4 (patch) | |
tree | 5191640095f02e0fea5682a33805bb5a391094ea /cmd/blog | |
parent | 1de5f4b45934fca7f0c1ffab0062a553b39090a4 (diff) |
go.blog/cmd/blog: fix JSON content-type
R=dsymonds
CC=golang-dev
https://golang.org/cl/9302044
Diffstat (limited to 'cmd/blog')
-rw-r--r-- | cmd/blog/blog.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/blog/blog.go b/cmd/blog/blog.go index 12a42b8..d1fa506 100644 --- a/cmd/blog/blog.go +++ b/cmd/blog/blog.go @@ -384,7 +384,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "%v(%s)", p, s.jsonFeed) return } - w.Header().Set("Content-type", "application/json") + w.Header().Set("Content-type", "application/json; charset=utf-8") w.Write(s.jsonFeed) return default: |