File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -982,15 +982,9 @@ async def test_https_proxy_connect_tunnel_session_close_no_hang(
982982 """Test that CONNECT tunnel connections are not pooled."""
983983 # Regression test for issue #11273.
984984
985- # Create a simple proxy server that responds to CONNECT
986- async def proxy_handler (request : web .Request ) -> web .Response :
987- if request .method == "CONNECT" :
988- # Return 200 OK for CONNECT
989- return web .Response (status = 200 )
990- return web .Response (text = "proxy response" )
991-
985+ # Create a minimal proxy server
986+ # The CONNECT method is handled at the protocol level, not by the handler
992987 proxy_app = web .Application ()
993- proxy_app .router .add_route ("*" , "/{path:.*}" , proxy_handler )
994988 proxy_server = await aiohttp_server (proxy_app )
995989 proxy_url = f"http://{ proxy_server .host } :{ proxy_server .port } "
996990
You can’t perform that action at this time.
0 commit comments