Mercurial Hosting > luan
diff src/goodjava/webserver/ServerSentEvents.java @ 1742:d778f1f2598a
make server side events proxy work
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Tue, 08 Nov 2022 09:32:46 +0200 |
parents | 623d9f62ab92 |
children |
line wrap: on
line diff
--- a/src/goodjava/webserver/ServerSentEvents.java Fri Nov 04 10:03:12 2022 -0600 +++ b/src/goodjava/webserver/ServerSentEvents.java Tue Nov 08 09:32:46 2022 +0200 @@ -74,6 +74,7 @@ writer.write("Access-Control-Allow-Origin: *\r\n"); writer.write("Cache-Control: no-cache\r\n"); writer.write("Content-Type: text/event-stream\r\n"); + writer.write("X-Accel-Buffering: no\r\n"); writer.write("\r\n"); writer.flush();