wultra / ssl-pinning-android

Android SDK for our dynamic SSL pinning
Apache License 2.0
60 stars 8 forks source link

HTTP response headers should be converted to lowercase #43

Closed petrdvorak closed 3 years ago

petrdvorak commented 3 years ago

Currently, we use code that depends on the X-Cert-Pinning-Signature HTTP header. However, some servers lowercase the values before they send the response, resulting in the x-cert-pinning-signature HTTP header which we later fail to check.

We should lowercase all response headers in the map and compare the lowercase headers.