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(core): ws error caused by empty proxyAgent #639

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

PentaTea
Copy link
Contributor

解决空代理导致的 websocket 错误

Koishi 4.6.1
go-cqhttp 1.0.0-rc1
proxyAgent为空时使用正向ws连接将报错:

[WARNING]: 处理 WebSocket 请求时出现错误: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

Copy link
Member

@shigma shigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shigma shigma merged commit 8954f85 into koishijs:master Apr 27, 2022
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.

2 participants