fix header
This commit is contained in:
1 parent
c952764b28
commit
3524e34c13
1 file changed
+1
@@ -145,6 +145,7 @@ func main() {
|
|||||||
header.Set("Content-Type", "text/event-stream; charset=utf-8")
|
header.Set("Content-Type", "text/event-stream; charset=utf-8")
|
||||||
header.Set("Cache-Control", "no-cache")
|
header.Set("Cache-Control", "no-cache")
|
||||||
header.Set("Connection", "keep-alive")
|
header.Set("Connection", "keep-alive")
|
||||||
|
header.Set("Content-Encoding", "none")
|
||||||
|
|
||||||
c.Status(http.StatusOK)
|
c.Status(http.StatusOK)
|
||||||
c.Writer.WriteHeaderNow()
|
c.Writer.WriteHeaderNow()
|
||||||
|
|||||||
Reference in new issue
Block a user