|
@@ -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})
|
|
|
}
|
|
|
|