diff options
author | Jochem Schulenklopper <j.schulenklopper@gmail.com> | 2021-10-06 02:02:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 02:02:58 (GMT) |
commit | c379bc5ec9012cf66424ef3d80612cf13ec51006 (patch) | |
tree | ad2aac1c9b349e089e3d49a191a4a57b05dec2c0 /Doc | |
parent | 241bda785a092a272d7e0f6a4e20bd250c389cfe (diff) | |
download | cpython-c379bc5ec9012cf66424ef3d80612cf13ec51006.zip cpython-c379bc5ec9012cf66424ef3d80612cf13ec51006.tar.gz cpython-c379bc5ec9012cf66424ef3d80612cf13ec51006.tar.bz2 |
bpo-40321: Support HTTP response status code 308 in urllib.request (#19588)
* Support HTTP response status code 308 in urllib.
HTTP response status code 308 is defined in https://tools.ietf.org/html/rfc7538 to be the permanent redirect variant of 307 (temporary redirect).
* Update documentation to include http_error_308()
* Add blurb for bpo-40321 fix
Co-authored-by: Roland Crosby <roland@rolandcrosby.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/urllib.request.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 659a363..099d74b 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -879,6 +879,12 @@ HTTPRedirectHandler Objects response. +.. method:: HTTPRedirectHandler.http_error_308(req, fp, code, msg, hdrs) + + The same as :meth:`http_error_301`, but called for the 'permanent redirect' + response. + + .. _http-cookie-processor: HTTPCookieProcessor Objects |