fix content type for shutdown

This commit is contained in:
Antoni Sawicki 2019-08-04 00:39:21 -07:00
parent f7aece10e9
commit 0e07f422f6

2
wrp.go
View File

@ -258,7 +258,7 @@ func haltServer(out http.ResponseWriter, req *http.Request) {
out.Header().Set("Cache-Control", "max-age=0")
out.Header().Set("Expires", "-1")
out.Header().Set("Pragma", "no-cache")
out.Header().Set("Content-Type", "text/text")
out.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(out, "Shutting down WRP...\n")
out.(http.Flusher).Flush()
time.Sleep(time.Second * 2)