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
This commit is contained in:
bep authored and spf13 committed 2014-10-15 12:45:29 -04:00
1 parent 0167fb4803
commit 24bbfe7d32
1 file changed
+1
+1
View File
@@ -48,6 +48,7 @@ func RefreshPath(s string) {
} }
func ServeJS(w http.ResponseWriter, r *http.Request) { func ServeJS(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/javascript")
w.Write(livereloadJS) w.Write(livereloadJS)
} }