Skip to content

Commit

Permalink
fix(sse): add X-Accel-Buffering=no
Browse files Browse the repository at this point in the history
  • Loading branch information
Axolotle committed Dec 10, 2024
1 parent f038752 commit edb0beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moulinette/interfaces/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ def sse(self):

response.content_type = 'text/event-stream'
response.cache_control = 'no-cache'
response.headers["X-Accel-Buffering"] = "no"

from yunohost.utils.sse import sse_stream
yield from sse_stream()
Expand Down

0 comments on commit edb0beb

Please sign in to comment.