Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sse log cannot be displayed normally #1453

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

yangkaa
Copy link
Contributor

@yangkaa yangkaa commented Mar 10, 2024

sse 规范中:

服务器向浏览器发送的 SSE 数据,必须是 UTF-8 编码的文本,具有如下的 HTTP 头信息。

Content-Type: text/event-stream
Cache-Control: no-cache
Connection: keep-alive

由于之前代码中没有显式指定 response['Content-Encoding'] = 'identity',导致响应头中默认是 response['Content-Encoding'] = 'gzip',浏览器无法正常展示。

Signed-off-by: yangk <yangk@goodrain.com>
@yangkaa yangkaa merged commit 8fba898 into goodrain:V6.0 Mar 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant