From: bep Date: Wed, 15 Oct 2014 11:26:21 +0000 (+0200) Subject: Set Content-Type for livereload.js X-Git-Tag: v0.13~377 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=24bbfe7d32fe151487ff87394433622e3f69eee4;p=brevno-suite%2Fhugo Set Content-Type for livereload.js The Content-Type was not set for livereload.js and was interpreteted by the browser as text/plain. This commit sets it to application/javascript. Fixes #562 --- diff --git a/livereload/livereload.go b/livereload/livereload.go index 29a6168a..1b154615 100644 --- a/livereload/livereload.go +++ b/livereload/livereload.go @@ -48,6 +48,7 @@ func RefreshPath(s string) { } func ServeJS(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "application/javascript") w.Write(livereloadJS) }