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 2014-10-15 13:26:21 +02:00 committed by spf13
parent 0167fb4803
commit 24bbfe7d32

View file

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