Add "Accept-Encoding: gzip" header to mapd.py to reduce data consumption (#525)

old-commit-hash: 03f13e614bad3c034b6915a659bfba74150b8047
This commit is contained in:
eFini
2019-02-14 03:19:17 +10:00
committed by Willem Melching
parent 3a420073e2
commit e405254e62

View File

@@ -35,7 +35,8 @@ from selfdrive.version import version, dirty
OVERPASS_API_URL = "https://overpass.kumi.systems/api/interpreter"
OVERPASS_HEADERS = {
'User-Agent': 'NEOS (comma.ai)'
'User-Agent': 'NEOS (comma.ai)',
'Accept-Encoding': 'gzip'
}
last_gps = None