diff --git a/graphinder/pool/detectors.py b/graphinder/pool/detectors.py index 8dc70f6..1b4ba30 100644 --- a/graphinder/pool/detectors.py +++ b/graphinder/pool/detectors.py @@ -275,6 +275,7 @@ async def is_gql_endpoint( status = await detector.detect() - if headers and has_opened_new_session: + if has_opened_new_session: await session.close() + return status diff --git a/pyproject.toml b/pyproject.toml index a6e5d58..95ae511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "graphinder" -version = "1.11.1" +version = "1.11.2" description = "Escape Graphinder" authors = ["Escape Technologies SAS "] maintainers = [