Skip to content

Commit f98d565

Browse files
Enable HTTP2 (#271)
1 parent fd7a2b0 commit f98d565

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

poetry.lock

+39-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repository = "https://github.com/supabase-community/storage-py"
2121
version = "0.7.6"
2222

2323
[tool.poetry.dependencies]
24-
httpx = ">=0.24,<0.28"
24+
httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
2525
python = "^3.8"
2626
typing-extensions = "^4.2.0"
2727
python-dateutil = "^2.8.2"

storage3/_async/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def _create_session(
3737
timeout=timeout,
3838
verify=bool(verify),
3939
follow_redirects=True,
40+
http2=True,
4041
)
4142

4243
async def __aenter__(self) -> AsyncStorageClient:

storage3/_sync/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def _create_session(
3737
timeout=timeout,
3838
verify=bool(verify),
3939
follow_redirects=True,
40+
http2=True,
4041
)
4142

4243
def __enter__(self) -> SyncStorageClient:

0 commit comments

Comments
 (0)