diff --git a/camply/providers/going_to_camp/going_to_camp_provider.py b/camply/providers/going_to_camp/going_to_camp_provider.py index c395595e..1f596048 100644 --- a/camply/providers/going_to_camp/going_to_camp_provider.py +++ b/camply/providers/going_to_camp/going_to_camp_provider.py @@ -335,8 +335,11 @@ def _api_request( url = None if endpoint: url = endpoint.format(hostname) - user_agent = {"User-Agent": UserAgent(browsers=["chrome"]).random} - response = requests.get(url=url, headers=user_agent, params=params, timeout=30) + headers = { + "User-Agent": UserAgent(browsers=["chrome"]).random, + "Accept-Language": "en-US,en;q=0.9", + } + response = requests.get(url=url, headers=headers, params=params, timeout=30) if response.ok is False: error_message = f"Receiving bad data from GoingToCamp API: status_code: {response.status_code}: {response.text}" logger.error(error_message)