maxmind / GeoIP2-python

Python code for GeoIP2 webservice client and database reader
https://geoip2.readthedocs.org/en/latest/
Apache License 2.0
1.1k stars 140 forks source link

Update tests for new mocket version #141

Closed oschwald closed 1 year ago

oschwald commented 1 year ago

Mocket 3.11.0 switched to a new package for parsing HTTP requests. This changed the header normalization. Unfortunately, the library does not seem to expose a method on the request object that normalizes the header name before checking for it; as such, we normalize them to lowercase ourselves.