mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Declare the XML content type the Abri relay requires 🟩
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
0d82f9e660
commit
fe167f077f
1 changed files with 5 additions and 1 deletions
|
|
@ -142,7 +142,11 @@ class AbriClient:
|
|||
|
||||
def _post(self, envelope: bytes) -> bytes:
|
||||
try:
|
||||
response = self._session.post(self._config.endpoint_url, data=envelope)
|
||||
response = self._session.post(
|
||||
self._config.endpoint_url,
|
||||
data=envelope,
|
||||
headers={"Content-Type": "application/xml"},
|
||||
)
|
||||
response.raise_for_status()
|
||||
except requests.RequestException as error:
|
||||
raise AbriTransportError(str(error)) from error
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue