Skip to content

Commit

Permalink
[pocketbase#488] added X-Accel-Buffering:no sse header
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Sep 16, 2022
1 parent 1f5c332 commit daffb0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/realtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (api *realtimeApi) connect(c echo.Context) error {
c.Response().Header().Set("Content-Type", "text/event-stream; charset=UTF-8")
c.Response().Header().Set("Cache-Control", "no-store")
c.Response().Header().Set("Connection", "keep-alive")
// https://github.com/pocketbase/pocketbase/discussions/480#discussioncomment-3657640
// https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering
c.Response().Header().Set("X-Accel-Buffering", "no")

event := &core.RealtimeConnectEvent{
HttpContext: c,
Expand Down

0 comments on commit daffb0f

Please sign in to comment.