Skip to content

Commit

Permalink
Merge pull request #252 from RWTH-EBC/250-Missing-headers-in-the-request
Browse files Browse the repository at this point in the history
fix: include headers in request
  • Loading branch information
djs0109 authored Mar 4, 2024
2 parents 41e7349 + 1380b37 commit d4dd719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- fix: wrong msg in iotac post device ([#214](https://github.com/RWTH-EBC/FiLiP/pull/214))
- add support to update entities with keyValues @djs0109 ([#245](https://github.com/RWTH-EBC/FiLiP/pull/245))
- add function to override the existing entity ([#232 ](https://github.com/RWTH-EBC/FiLiP/pull/232 ))
- fix: include headers in some requests ([#250](https://github.com/RWTH-EBC/FiLiP/issues/250))

#### v0.3.0
- fix: bug in typePattern validation @richardmarston ([#180](https://github.com/RWTH-EBC/FiLiP/pull/180))
Expand Down
4 changes: 2 additions & 2 deletions filip/clients/ngsi_v2/quantumleap.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_version(self) -> Dict:
"""
url = urljoin(self.base_url, '/version')
try:
res = self.get(url=url)
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status()
Expand All @@ -88,7 +88,7 @@ def get_health(self) -> Dict:
"""
url = urljoin(self.base_url, '/health')
try:
res = self.get(url=url)
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status()
Expand Down

0 comments on commit d4dd719

Please sign in to comment.