proyecto26 / RestClient

🦄 A Promise based REST and HTTP client for Unity 🎮
https://assetstore.unity.com/packages/slug/102501
MIT License
1.24k stars 175 forks source link

Request headers must contain only ASCII characters #195

Open sealoyal2018 opened 2 years ago

sealoyal2018 commented 2 years ago

When I use restclient to simulate login, I need to keep the cookie, but there is a FriendlyName attribute in the cookie returned by the server that contains non-ascii characters, and then the second request will be wrong "Request headers must contain only ASCII characters" image

image

jdnichollsc commented 2 years ago

Can you try encoding that cookie? That error is handled by UnityWebRequest system 🤔

maifeeulasad commented 2 years ago

Can you paste your code here, so that I may try and reproduce it on my end?