matomo-tracker icon indicating copy to clipboard operation
matomo-tracker copied to clipboard

User-Agent FormatException: Invalid HTTP header field value

Open litang0908 opened this issue 1 year ago • 4 comments

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 avatar Jan 25 '24 07:01 litang0908

@litang0908 Some tests are failing and should be fixed before merging.

TesteurManiak avatar Jan 26 '24 13:01 TesteurManiak

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.

github-actions[bot] avatar Feb 15 '24 21:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 08 '24 21:03 github-actions[bot]

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.

github-actions[bot] avatar Mar 31 '24 21:03 github-actions[bot]