shithub: hugo

Download patch

ref: 24bbfe7d32fe151487ff87394433622e3f69eee4
parent: 0167fb480317749e24a7a5feb22a8d4e475873ce
author: bep <[email protected]>
date: Wed Oct 15 09:26:21 EDT 2014

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

--- a/livereload/livereload.go
+++ b/livereload/livereload.go
@@ -48,6 +48,7 @@
 }
 
 func ServeJS(w http.ResponseWriter, r *http.Request) {
+	w.Header().Set("Content-Type", "application/javascript")
 	w.Write(livereloadJS)
 }