Mittwald-/Login-API: Weiterleitungen folgen (wie requests); nicht gefolgte 3xx-Antwort ist ein Fehler statt leerer Erfolg

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
RubenRWU
2026-10-15 16:19:01 +02:00
parent c45a6a0561
commit 8000f76457
3 changed files with 22 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ class OnyvaLogin:
@staticmethod
def _real(method, url, headers, body):
r = httpx.request(method, url, headers=headers, json=body, timeout=30)
r = httpx.request(method, url, headers=headers, json=body, timeout=30, follow_redirects=True)
try:
data = r.json() if r.content else None
except ValueError: