mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
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:
1 parent
0167fb4803
commit
24bbfe7d32
1 file changed
+1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user