From 5a81d8dba9c096ab016759fcfa7984043f8f877c Mon Sep 17 00:00:00 2001
From: Dan Wager <danielwager@gmail.com>
Date: Fri, 26 Apr 2024 14:34:59 -0700
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20accept-language=20header?=
 =?UTF-8?q?=20to=20goingtocamp=20requests?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 camply/providers/going_to_camp/going_to_camp_provider.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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)