You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let password = "brocolis🥦";let req = Request::get("https://exemple.com").header("Content-Type","application/json").header("pswd", password);
Throws the following error in http/headers.rs at line 62 : Cannot convert argument 2 to ByteString because the character at index 8 has value 55358 which is greater than 255.
Probably that there should be some error handling in those functions :
Description
Failure to encode utf-8 strings into headers
Steps to Reproduce
Throws the following error in
http/headers.rs
at line 62 : Cannot convert argument 2 to ByteString because the character at index 8 has value 55358 which is greater than 255.Probably that there should be some error handling in those functions :
Here is some code to easily reproduce the error : reproduct.zip
Expected Behavior
String are just an array of u8, so I would expect the header to be sent with the ASCII representation of the utf-8 string (?)
The text was updated successfully, but these errors were encountered: