From 8b5c8cd77bca477f688dd695572d3586bb84b52f Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 2 Oct 2018 21:21:46 +0200 Subject: [PATCH] Add content type to version response --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 4c4544f..924f910 100644 --- a/server.go +++ b/server.go @@ -52,6 +52,7 @@ func (handler *ApiHandler) ServeHTTP( dirs := strings.Split(request.URL.Path, "/") switch dirs[0] { case "version": + response.Header().Set("Content-Type", "application/json") v, err := version.Versions.Json() if err != nil { http.Error(response, "Unable to encode version information", 500)