Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Sanitize value of User-Agent header #429

Closed hborisoff closed 3 years ago

hborisoff commented 3 years ago
What Where/Who
JIRA Issue SDK-133
People Involved @hborisoff

Background

Didn't find the exact information in the HTTP specification on how to validate User-Agent header value. Some sources say that it should comply to ISO-8859-1. Unfortunately the implementation in OkHttp does not cover some of the symbols in that ISO. Solution is to copy the supported symbols from OkHttp source.