From cf5fc4dae86706b1bada33eea296c39077ca747f Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 5 Feb 2022 17:13:31 +0000 Subject: [PATCH 1/3] Export HTTPMove --- aiohttp/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiohttp/web.py b/aiohttp/web.py index c0348c8d09..f093c1a4aa 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -42,6 +42,7 @@ HTTPLengthRequired as HTTPLengthRequired, HTTPMethodNotAllowed as HTTPMethodNotAllowed, HTTPMisdirectedRequest as HTTPMisdirectedRequest, + HTTPMove as HTTPMove, HTTPMovedPermanently as HTTPMovedPermanently, HTTPMultipleChoices as HTTPMultipleChoices, HTTPNetworkAuthenticationRequired as HTTPNetworkAuthenticationRequired, From ce6f29fd6a08a9d7874ce21c862bfc0cf9176bc4 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 5 Feb 2022 17:18:13 +0000 Subject: [PATCH 2/3] Create 6594.feature --- CHANGES/6594.feature | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 CHANGES/6594.feature diff --git a/CHANGES/6594.feature b/CHANGES/6594.feature new file mode 100644 index 0000000000..4edadb07b3 --- /dev/null +++ b/CHANGES/6594.feature @@ -0,0 +1,2 @@ +Exported ``HTTPMove`` which can be used to catch any redirection request +that has a location -- :user:`dreamsorcerer`. From c56913097d3ccd6f28381ca5ea62fdb8d9b2c11b Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 5 Feb 2022 17:22:02 +0000 Subject: [PATCH 3/3] Update web.py --- aiohttp/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiohttp/web.py b/aiohttp/web.py index f093c1a4aa..4a35413236 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -175,6 +175,7 @@ "HTTPLengthRequired", "HTTPMethodNotAllowed", "HTTPMisdirectedRequest", + "HTTPMove", "HTTPMovedPermanently", "HTTPMultipleChoices", "HTTPNetworkAuthenticationRequired",