Skip to content

Commit

Permalink
Enable HTTP2 (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco authored Jul 9, 2024
1 parent fd7a2b0 commit f98d565
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
40 changes: 39 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repository = "https://github.com/supabase-community/storage-py"
version = "0.7.6"

[tool.poetry.dependencies]
httpx = ">=0.24,<0.28"
httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
python = "^3.8"
typing-extensions = "^4.2.0"
python-dateutil = "^2.8.2"
Expand Down
1 change: 1 addition & 0 deletions storage3/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def _create_session(
timeout=timeout,
verify=bool(verify),
follow_redirects=True,
http2=True,
)

async def __aenter__(self) -> AsyncStorageClient:
Expand Down
1 change: 1 addition & 0 deletions storage3/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def _create_session(
timeout=timeout,
verify=bool(verify),
follow_redirects=True,
http2=True,
)

def __enter__(self) -> SyncStorageClient:
Expand Down

0 comments on commit f98d565

Please sign in to comment.