mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Merge pull request #94 from holisticode/network-testing-framework
p2p/simulations: eventstream backend double-backslash on init
This commit is contained in:
commit
5e3c9d6c93
1 changed files with 1 additions and 0 deletions
|
|
@ -466,6 +466,7 @@ func (s *Server) StreamNetworkEvents(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "text/event-stream; charset=utf-8")
|
w.Header().Set("Content-Type", "text/event-stream; charset=utf-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
fmt.Fprintf(w, "\n\n")
|
||||||
if fw, ok := w.(http.Flusher); ok {
|
if fw, ok := w.(http.Flusher); ok {
|
||||||
fw.Flush()
|
fw.Flush()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue