summaryrefslogtreecommitdiff
path: root/e3372.py
diff options
context:
space:
mode:
Diffstat (limited to 'e3372.py')
-rw-r--r--e3372.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/e3372.py b/e3372.py
index 016329c..e5618a6 100644
--- a/e3372.py
+++ b/e3372.py
@@ -65,7 +65,7 @@ class E3372:
def request(self, endpoint: str, data=None):
url = f'http://{self.ip}/api/{endpoint}'
- r = requests.get(url) if data is None else requests.post(url, data=data)
+ r = requests.get(url, headers=self.headers) if data is None else requests.post(url, data=data, headers=self.headers)
soup = BeautifulSoup(r.text, 'lxml-xml')