diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.py | 3 | ||||
| -rw-r--r-- | src/request.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py index e72477e..cf9fdc5 100644 --- a/src/config.py +++ b/src/config.py @@ -7,3 +7,6 @@ CLIENT_MAX_PROCESS = 32 # max processing threads at once # API API_FILE_RANDOM_MIN_SIZE_LIMIT = 1 # 1 byte API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 5 # 5 GiB +API_VERSIONS = { + "APIv1": {"supported": True} +} diff --git a/src/request.py b/src/request.py index fcd50f3..ed828e5 100644 --- a/src/request.py +++ b/src/request.py @@ -81,7 +81,6 @@ class Response: self.data_stream: Generator[bytes, None, None] | None = kwargs.get("data_stream") self.status: StatusCode = status self.headers: dict[str, Any] = headers if headers is not None else dict() - self.compress: bool = kwargs.get("compress", True) # # check for content-length when using data_stream # if self.data_stream is not None and self.headers.get("Content-Length") is None: |