From 7c05c8402b8bc45538e959cfcd43ad0a074c6d81 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Mon, 22 May 2017 11:50:18 -0500 Subject: [PATCH] p2p/simulations: eventstream backend returns double-backslash on init (FF support) --- p2p/simulations/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go index a0f30c7460..009c6fce74 100644 --- a/p2p/simulations/http.go +++ b/p2p/simulations/http.go @@ -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.WriteHeader(http.StatusOK) + fmt.Fprintf(w, "\n\n") if fw, ok := w.(http.Flusher); ok { fw.Flush() }