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

pull/530/head
eFini 6 years ago committed by Willem Melching
parent 23512ba932
commit 03f13e614b
  1. 3
      selfdrive/mapd/mapd.py

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

Loading…
Cancel
Save