0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Merge pull request #224 from pyed/patch-2

Fixing comment
This commit is contained in:
Matt Holt 2015-08-27 10:13:38 -06:00
commit c5006321a7

View file

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