Commit 8b5c8cd77bca477f688dd695572d3586bb84b52f
1 parent
998f3a23
Add content type to version response
Showing
1 changed file
with
1 additions
and
0 deletions
... | ... | @@ -52,6 +52,7 @@ func (handler *ApiHandler) ServeHTTP( |
52 | 52 | dirs := strings.Split(request.URL.Path, "/") |
53 | 53 | switch dirs[0] { |
54 | 54 | case "version": |
55 | + response.Header().Set("Content-Type", "application/json") | |
55 | 56 | v, err := version.Versions.Json() |
56 | 57 | if err != nil { |
57 | 58 | http.Error(response, "Unable to encode version information", 500) | ... | ... |
Please
register
or
login
to post a comment