mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +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) {
|
||||
wg.Wait()
|
||||
b := toServe.Load().([]byte)
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
w.Write(b)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue