Skip to content
Snippets Groups Projects
Verified Commit ec0ef566 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Header too long

parent 7d76f8b9
No related branches found
No related tags found
2 merge requests!123TEST: xfail for issue 111,!121Container could fail to delete when there were reference properties
Pipeline #44469 passed
......@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ###
- [#113](https://gitlab.com/linkahead/linkahead-pylib/-/issues/113) Container could fail to delete when there were reference properties.
- HTTP status 431 (Headers too long) now also raises an URI too long exception.
### Security ###
......
......@@ -509,7 +509,8 @@ def _handle_response_status(http_response):
raise LoginFailedError(standard_message)
elif status == 403:
raise HTTPForbiddenError(standard_message)
elif status in (413, 414):
elif status in (413, 414, 431):
# Content (413), URI (414) or complete HTTP headers (URI+headers) (431) too long
raise HTTPURITooLongError(standard_message)
elif 399 < status < 500:
raise HTTPClientError(msg=standard_message, status=status, body=body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment