HTTP testing corrections

This commit is contained in:
Jakob Borg
2014-08-05 09:38:38 +02:00
parent f288e00c37
commit 9db75e91ac
2 changed files with 69 additions and 36 deletions

View File

@@ -502,6 +502,7 @@ func restGetLang(w http.ResponseWriter, r *http.Request) {
langs = append(langs, l[:2])
}
}
w.Header().Set("Content-Type", "application/json; charset=utf-8")
json.NewEncoder(w).Encode(langs)
}