Browse Source

go: Fix Content-Type

INADA Naoki 10 years ago
parent
commit
98730b4f8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Go/go/src/hello/hello.go

+ 1 - 1
frameworks/Go/go/src/hello/hello.go

@@ -84,7 +84,7 @@ func main() {
 
 // Test 1: JSON serialization
 func jsonHandler(w http.ResponseWriter, r *http.Request) {
-	w.Header().Set("Content-Type", "application/javascript")
+	w.Header().Set("Content-Type", "application/json")
 	json.NewEncoder(w).Encode(&Message{helloWorldString})
 }