diff options
| author | David Smith <smithdc@gmail.com> | 2021-07-23 07:48:16 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-29 06:24:12 +0200 |
| commit | 1024b5e74a7166313ad4e4975a15e90dccd3ec5f (patch) | |
| tree | 05d75177f183de5e3c58dbf25a3f71ff4a5c820a /django/test | |
| parent | acde91745656a852a15db7611c08cabf93bb735b (diff) | |
Fixed 32956 -- Lowercased spelling of "web" and "web framework" where appropriate.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
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. |
