From a2bb28375a16386a8e12d7933d164c3196f6f1b4 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 8 May 2013 08:31:05 -0700 Subject: go.blog/cmd/blog: fix JSON content-type R=dsymonds CC=golang-dev https://golang.org/cl/9302044 --- cmd/blog/blog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/blog/blog.go') 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: -- cgit v1.2.3