From 8fcbbf010c186b6cb8c192748bd6ecb97700f980 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 22 May 2021 17:37:44 +0200 Subject: [PATCH] API - fix user agent used to get map tiles --- fittrackee/workouts/workouts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fittrackee/workouts/workouts.py b/fittrackee/workouts/workouts.py index 609b0051..726b5845 100644 --- a/fittrackee/workouts/workouts.py +++ b/fittrackee/workouts/workouts.py @@ -741,7 +741,7 @@ def get_map_tile(s: str, z: str, x: str, y: str) -> Tuple[Response, int]: """ url = current_app.config['TILE_SERVER']['URL'].format(s=s, z=z, x=x, y=y) - headers = {'User-Agent': 'Mozilla/5.0'} + headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:88.0)'} response = requests.get(url, headers=headers) return ( Response(