diff --git a/CHANGES/6594.feature b/CHANGES/6594.feature new file mode 100644 index 00000000000..4edadb07b3a --- /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`. diff --git a/aiohttp/web.py b/aiohttp/web.py index 02c2f55ddb6..71c2089941f 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -44,6 +44,7 @@ HTTPLengthRequired, HTTPMethodNotAllowed, HTTPMisdirectedRequest, + HTTPMove, HTTPMovedPermanently, HTTPMultipleChoices, HTTPNetworkAuthenticationRequired, @@ -157,6 +158,7 @@ "HTTPLengthRequired", "HTTPMethodNotAllowed", "HTTPMisdirectedRequest", + "HTTPMove", "HTTPMovedPermanently", "HTTPMultipleChoices", "HTTPNetworkAuthenticationRequired",