Merge pull request #4 from kesselborn/feature/correct-content-type

Remove explicit WriteHeader call to have correct content type
This commit is contained in:
Matt T. Proud 2013-01-09 03:35:29 -08:00
commit 397d68435c
1 changed files with 0 additions and 1 deletions

View File

@ -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 {