mirror of
https://github.com/django/daphne.git
synced 2025-04-20 00:32:09 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e41c1dd1d7
commit
87e591daf7
|
@ -13,11 +13,9 @@ class TestHTTPResponse(DaphneTestCase):
|
|||
Lowercases and sorts headers, and strips transfer-encoding ones.
|
||||
"""
|
||||
return sorted(
|
||||
[
|
||||
(name.lower(), value.strip())
|
||||
for name, value in headers
|
||||
if name.lower() != b"transfer-encoding"
|
||||
]
|
||||
(name.lower(), value.strip())
|
||||
for name, value in headers
|
||||
if name.lower() != b"transfer-encoding"
|
||||
)
|
||||
|
||||
def encode_headers(self, headers):
|
||||
|
|
Loading…
Reference in New Issue
Block a user