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

fix: App crash when app name contains contain non-ASCII characters #562

Merged
merged 8 commits into from
Aug 14, 2023

Conversation

PruthiviRaj27
Copy link
Contributor

@PruthiviRaj27 PruthiviRaj27 commented Aug 12, 2023

  • We include the application name in the User-Agent request header to identify the app usage. If the app name includes special characters, it leads to a crash because the header value should not contain non-ASCII values. Non-ASCII Header Encoding Issues square/okhttp#891
  • In this commit, we have passed the package name to the User-Agent instead of the App name because the package name is also unique.

@PruthiviRaj27 PruthiviRaj27 changed the title fix: App crash when app name contains special characters fix: App crash when app name contains contain non-ASCII characters Aug 14, 2023
@PruthiviRaj27 PruthiviRaj27 merged commit 0b988be into master Aug 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix_request_header_validation branch August 14, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant