mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-22 20:12:17 +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:
parent
0167fb4803
commit
24bbfe7d32
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue