Skip to content

Commit

Permalink
Merge pull request prometheus#4 from kesselborn/feature/correct-conte…
Browse files Browse the repository at this point in the history
…nt-type

Remove explicit WriteHeader call to have correct content type
  • Loading branch information
matttproud committed Jan 9, 2013
2 parents 474d1d5 + 05891fd commit 397d684
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 397d684

Please sign in to comment.