hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 24bbfe7d32fe151487ff87394433622e3f69eee4
parent 0167fb480317749e24a7a5feb22a8d4e475873ce
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 15 Oct 2014 13:26:21 +0200

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

Diffstat:
Mlivereload/livereload.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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)
 }