diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/signatures.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/signatures.py b/core/signatures.py index edfc70e..e2582c5 100644 --- a/core/signatures.py +++ b/core/signatures.py @@ -227,9 +227,9 @@ class HttpSignature: content=body_bytes, follow_redirects=method == "get", ) - if response.status_code >= 400: + if method == "post" and response.status_code >= 400: raise ValueError( - f"Request error: {response.status_code} {response.content}" + f"POST error: {response.status_code} {response.content}" ) return response |