From 1024b5e74a7166313ad4e4975a15e90dccd3ec5f Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 23 Jul 2021 07:48:16 +0100 Subject: Fixed 32956 -- Lowercased spelling of "web" and "web framework" where appropriate. --- django/test/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'django/test/client.py') diff --git a/django/test/client.py b/django/test/client.py index b4c091aa5c..dd735dd833 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -98,7 +98,7 @@ def closing_iterator_wrapper(iterable, close): def conditional_content_removal(request, response): """ - Simulate the behavior of most Web servers by removing the content of + Simulate the behavior of most web servers by removing the content of responses for HEAD requests, 1xx, 204, and 304 responses. Ensure compliance with RFC 7230, section 3.3.3. """ @@ -144,7 +144,7 @@ class ClientHandler(BaseHandler): # Request goes through middleware. response = self.get_response(request) - # Simulate behaviors of most Web servers. + # Simulate behaviors of most web servers. conditional_content_removal(request, response) # Attach the originating request to the response so that it could be @@ -190,7 +190,7 @@ class AsyncClientHandler(BaseHandler): request._dont_enforce_csrf_checks = not self.enforce_csrf_checks # Request goes through middleware. response = await self.get_response_async(request) - # Simulate behaviors of most Web servers. + # Simulate behaviors of most web servers. conditional_content_removal(request, response) # Attach the originating ASGI request to the response so that it could # be later retrieved. -- cgit v1.3