From 405a898d44215d44ec95587c55102608813e52a2 Mon Sep 17 00:00:00 2001 From: Vladislav Bakaev Date: Mon, 20 Mar 2023 13:32:37 +0300 Subject: [PATCH 1/3] Fix readchunk call for large body without chunked encoding --- aiohttp_asgi/resource.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aiohttp_asgi/resource.py b/aiohttp_asgi/resource.py index 6f14c42..e985cb1 100644 --- a/aiohttp_asgi/resource.py +++ b/aiohttp_asgi/resource.py @@ -220,11 +220,11 @@ async def on_receive(self) -> Dict[str, Any]: "code": response.close_code, } - chunk, more_body = await self.request.content.readchunk() + chunk, _ = await self.request.content.readchunk() return { "type": "http.request", "body": chunk, - "more_body": more_body, + "more_body": not self.request.content.at_eof(), } async def on_send(self, payload: Dict[str, Any]) -> None: diff --git a/pyproject.toml b/pyproject.toml index 3e83f6a..90effaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aiohttp_asgi" -version = "0.5.0" +version = "0.5.1" description = "Adapter to running ASGI applications on aiohttp" authors = ["Dmitry Orlov "] readme = "README.md" From d74c9c49322941dd0421f5faae1d43c9571545e1 Mon Sep 17 00:00:00 2001 From: Mosquito Date: Mon, 20 Mar 2023 15:41:12 +0300 Subject: [PATCH 2/3] Fix coveralls --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ebf83c5..9a59386 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -88,7 +88,7 @@ jobs: - run: poetry run coveralls env: COVERALLS_PARALLEL: 'true' - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_SERVICE_NAME: github GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} finish: From c79b0840769d95c97da3c22b774fd0c53c139e8a Mon Sep 17 00:00:00 2001 From: Mosquito Date: Mon, 20 Mar 2023 15:44:42 +0300 Subject: [PATCH 3/3] bump to 0.5.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 90effaa..cb58abf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aiohttp_asgi" -version = "0.5.1" +version = "0.5.2" description = "Adapter to running ASGI applications on aiohttp" authors = ["Dmitry Orlov "] readme = "README.md"