continuserv: set Content-Type header

pull/977/head
Daniel Wagner-Hall 9 years ago
parent cfdcf9e5a3
commit 7f6eafdce5

@ -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…
Cancel
Save