mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-25 13:30:51 +00:00
fix content type for shutdown
This commit is contained in:
parent
f7aece10e9
commit
0e07f422f6
2
wrp.go
2
wrp.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user