Merge pull request #4 from kesselborn/feature/correct-content-type
Remove explicit WriteHeader call to have correct content type
This commit is contained in:
commit
397d68435c
|
@ -128,7 +128,6 @@ func (registry *Registry) YieldExporter() http.HandlerFunc {
|
|||
url := r.URL
|
||||
|
||||
if strings.HasSuffix(url.Path, jsonSuffix) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Header().Set(contentType, jsonContentType)
|
||||
composite := make(map[string]interface{}, len(registry.NameToMetric))
|
||||
for name, metric := range registry.NameToMetric {
|
||||
|
|
Loading…
Reference in New Issue