Skip to content

fix: use BrotliDecoderAttachDictionary for custom dictionaries - #229

Open
rome-xi wants to merge 1 commit into
python-hyper:mainfrom
rome-xi:contrib/brotlicffi-215
Open

fix: use BrotliDecoderAttachDictionary for custom dictionaries#229
rome-xi wants to merge 1 commit into
python-hyper:mainfrom
rome-xi:contrib/brotlicffi-215

Conversation

@rome-xi

@rome-xi rome-xi commented Aug 24, 2026

Copy link
Copy Markdown

Closes #215.

Decompressor(dictionary=...) still called the removed BrotliDecoderSetCustomDictionary, which raises AttributeError on current libbrotli. Switch to BrotliDecoderAttachDictionary with BROTLI_SHARED_DICTIONARY_RAW, expose the API in the CFFI cdef, and add a regression test.

Signed-off-by: rome-xi <rome-xi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decompressor uses inexistent dictionary API

1 participant