diff --git a/lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core/adapter.py b/lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core/adapter.py index 3d3acc60c..64c49784e 100644 --- a/lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core/adapter.py +++ b/lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core/adapter.py @@ -167,6 +167,7 @@ async def _run_query(self, dba_query: DBAdapterQuery) -> Any: url=api_url, params=request_params, json=payload.json_body, + allow_redirects=False, ) if resp.status != 200: @@ -301,6 +302,7 @@ async def _get_user_tables(self, schema_ident: SchemaIdent) -> list[str]: resp = await self._session.post( url=api_url, json=body, + allow_redirects=False, ) if resp.status != 200: