mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 00:48:38 +01:00
continuserv: set Content-Type header
This commit is contained in:
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…
Reference in a new issue