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

在 c++开发中,使用ws进行请求。会因为路径上有中文而报错,In c++ development, using ws for requests will result in an error due to Chinese characters in the path. #3307

Closed
banchen19 opened this issue Mar 11, 2024 · 1 comment
Labels
C-bug-upstream Category: bug in a dependency (including actix-net)

Comments

@banchen19
Copy link

复现条件:
在 c++开发中使用这个库:
https://github.com/cyanray/LightWebSocketClient

请求路径为:ws://127.0.0.1:2000/api/pe/ws?server_name=bb阿

服务端报错: 2024-03-11 18:14:51 ERROR [actix_http::h1::dispatcher] stream error: request parse error: invalid Header provided

我的仓库地址:https://github.com/MC-PMA/McSynServer/tree/main

Reproduction Conditions:

Using this library in c++development:

https://github.com/cyanray/LightWebSocketClient

The request path is: ws://127.0.0.1:2000/api/pe/ws?server_name=bb阿

Server error: 2024-03-11 18:14:51 ERROR [actix_http::h1::dispatcher] stream error: request parse error: invalid Header provided
My repository address: https://github.com/MC-PMA/McSynServer/tree/main

@banchen19
Copy link
Author

seanmonstar/httparse#146

@robjtede robjtede added the C-bug-upstream Category: bug in a dependency (including actix-net) label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug-upstream Category: bug in a dependency (including actix-net)
Projects
None yet
Development

No branches or pull requests

2 participants