summaryrefslogtreecommitdiff
path: root/tests/test_client
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-11-04 12:33:09 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-11-10 13:52:17 +0100
commit9bd174b9a75299dce33e673a559f2b673399b971 (patch)
tree1deaac147ece269ef6a895986291d536ed334c49 /tests/test_client
parentfad070b07b8c5f5022c2867d291cb6968709f2a1 (diff)
downloaddjango-9bd174b9a75299dce33e673a559f2b673399b971.tar.gz
Updated documentation and comments for RFC updates.
- Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
Diffstat (limited to 'tests/test_client')
-rw-r--r--tests/test_client/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_client/views.py b/tests/test_client/views.py
index 01850257b5..494844009d 100644
--- a/tests/test_client/views.py
+++ b/tests/test_client/views.py
@@ -395,8 +395,7 @@ def django_project_redirect(request):
def no_trailing_slash_external_redirect(request):
"""
- RFC 2616 3.2.2: A bare domain without any abs_path element should be
- treated as having the trailing `/`.
+ RFC 3986 Section 6.2.3: Empty path should be normalized to "/".
Use https://testserver, rather than an external domain, in order to allow
use of follow=True, triggering Client._handle_redirects().