From b9d3e7721ed304809b74bfae6a49d75cc219f8ae Mon Sep 17 00:00:00 2001 From: pyed Date: Thu, 27 Aug 2015 17:57:59 +0300 Subject: [PATCH] Fixing my comment the old comment might throw the source-reader off, my bad. --- middleware/browse/browse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/browse/browse.go b/middleware/browse/browse.go index 341f86a30..8036896f0 100644 --- a/middleware/browse/browse.go +++ b/middleware/browse/browse.go @@ -297,7 +297,7 @@ func (b Browse) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { } w.Header().Set("Content-Type", "application/json; charset=utf-8") - } else { // there's no json query, browse normally + } else { // there's no 'application/json' in the 'Accept' header, browse normally err = bc.Template.Execute(&buf, listing) if err != nil { return http.StatusInternalServerError, err