diff options
Diffstat (limited to 'e3372.py')
-rw-r--r-- | e3372.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |