Skip to content

Commit a3547b9

Browse files
authored
feat: add support decompress *br* response content (#226)
### Description Adds support for decompressing a brotli-compressed server response if an "Accept-Encoding" header was passed with the "br" or "gzip, deflate, br" parameter and the server supports this type of compression. Httpx provides the necessary functionality, but requires additional libraries to be installed to work correctly.
1 parent e529baf commit a3547b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ colorama = "^0.4.6"
5252
docutils = "^0.21.0"
5353
eval-type-backport = "^0.2.0"
5454
html5lib = { version = "^1.1", optional = true }
55-
httpx = "^0.27.0"
55+
httpx = {extras = ["brotli"], version = "^0.27.0"}
5656
lxml = { version = "^5.2.1", optional = true }
5757
more_itertools = "^10.2.0"
5858
playwright = { version = "^1.43.0", optional = true }

0 commit comments

Comments
 (0)