enrich class with max-content-length

This commit is contained in:
Peter Bieringer
2025-12-11 08:46:22 +01:00
parent b60cfe3311
commit b3a65627e4

View File

@@ -39,6 +39,7 @@ class ApplicationBase:
_rights: rights.BaseRights
_web: web.BaseWeb
_encoding: str
_max_content_length: int
_permit_delete_collection: bool
_permit_overwrite_collection: bool
_strict_preconditions: bool
@@ -51,6 +52,7 @@ class ApplicationBase:
self._rights = rights.load(configuration)
self._web = web.load(configuration)
self._encoding = configuration.get("encoding", "request")
self._max_content_length = configuration.get("server", "max_content_length")
self._log_bad_put_request_content = configuration.get("logging", "bad_put_request_content")
self._response_content_on_debug = configuration.get("logging", "response_content_on_debug")
self._request_content_on_debug = configuration.get("logging", "request_content_on_debug")