fix: Update User-Agent header in Google Maps API requests for improved compatibility

This commit is contained in:
Sean Morley
2026-01-10 20:12:14 -05:00
parent 1a09e694d7
commit 58fc806970

View File

@@ -21,7 +21,7 @@ def search_google(query):
'Content-Type': 'application/json',
'X-Goog-Api-Key': api_key,
'X-Goog-FieldMask': 'places.displayName.text,places.formattedAddress,places.location,places.types,places.rating,places.userRatingCount',
'User-Agent': f'AdventureLog/{getattr(settings, "ADVENTURELOG_RELEASE_VERSION", "dev")} (https://github.com/seanmorley15/AdventureLog)',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}
payload = {