via

Simple pubsub server inspired by https://patchbay.pub/
git clone https://git.ce9e.org/via.git

commit
00b93f62d86e92cce13b3fd4e79c513b46ead4b6
parent
ae7ef8e10dd25f1e6cf371065e7990a70e988127
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-04-08 19:43
set header to prevent proxy buffering

Diffstat

M via.go 1 +

1 files changed, 1 insertions, 0 deletions


diff --git a/via.go b/via.go

@@ -161,6 +161,7 @@ func getSse(w http.ResponseWriter, r *http.Request) {
  161   161 	}
  162   162 
  163   163 	w.Header().Set("Content-Type", "text/event-stream")
   -1   164 	w.Header().Set("X-Accel-Buffering", "no")
  164   165 	w.WriteHeader(http.StatusOK)
  165   166 	flusher.Flush()
  166   167