Template
1
0
Fork 0

I hate NGINX

This commit is contained in:
Atridad Lahiji 2024-05-14 20:46:36 -06:00
parent 78133f6519
commit d30c6c9498
No known key found for this signature in database

View file

@ -87,7 +87,7 @@ func SetSSEHeaders(c echo.Context) {
c.Response().Header().Set(echo.HeaderContentType, "text/event-stream")
c.Response().Header().Set(echo.HeaderConnection, "keep-alive")
c.Response().Header().Set(echo.HeaderCacheControl, "no-cache")
c.Response().Header().Set("X-Accel-Buffering", "yes")
c.Response().Header().Set("X-Accel-Buffering", "no")
}
func HandleIncomingMessages(c echo.Context, pubsub pubsub.PubSubMessage, client chan string) {