Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add parameter for set maximum length after decompress #1149

Open
ikrivosheev opened this issue Mar 27, 2024 · 0 comments
Open

Add parameter for set maximum length after decompress #1149

ikrivosheev opened this issue Mar 27, 2024 · 0 comments

Comments

@ikrivosheev
Copy link

Hello! It'll be great to have parameter max_length in Decompressor (http://python-hyper.org/projects/brotlipy/en/latest/api.html#brotli.Decompressor.decompress) like in python zlib: https://docs.python.org/3/library/zlib.html#zlib.Decompress.decompress.

The parameter mean that the return value will be no longer than max_length. I need it for use in http client.
Related issue in aiohttp: aio-libs/aiohttp#8248

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant