User-Agent FormatException: Invalid HTTP header field value
API request failed if there are Chinese characters in User Agent. so encode ua by Uri.encodeComponent.
Here is the error message:
FormatException: Invalid HTTP header field value: "MacBookPro18,3, Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000, 版本13.5.1(版号22G90)" (at character 120)
...2:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000, 版本13.5.1(版号22G90)
@litang0908 Some tests are failing and should be fixed before merging.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.