continuserv: set Content-Type header
This commit is contained in:
parent
cfdcf9e5a3
commit
7f6eafdce5
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ func filter(e fsnotify.Event) bool {
|
||||||
func serve(w http.ResponseWriter, req *http.Request) {
|
func serve(w http.ResponseWriter, req *http.Request) {
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
b := toServe.Load().([]byte)
|
b := toServe.Load().([]byte)
|
||||||
|
w.Header().Set("Content-Type", "text/html")
|
||||||
w.Write(b)
|
w.Write(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue