summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit/http.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index b4a1a17b..522d2ea6 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -209,9 +209,7 @@ class TestHTTP:
return {}
headers_text, body = m.group(1), m.group(2)
-
- p = re.compile('(.*?)\x0d\x0a?', re.M | re.S)
- headers_lines = p.findall(headers_text)
+ headers_lines = re.findall('(.*?)\x0d\x0a?', headers_text, re.M | re.S)
status = re.search(
r'^HTTP\/\d\.\d\s(\d+)|$', headers_lines.pop(0)