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: 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..cb58abf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aiohttp_asgi" -version = "0.5.0" +version = "0.5.2" description = "Adapter to running ASGI applications on aiohttp" authors = ["Dmitry Orlov "] readme = "README.md"