summaryrefslogtreecommitdiffstats
path: root/test/pyhttpd/curl.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 17:06:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 17:06:34 +0000
commitfbecfb724069de4192e191f0c662846c3e8588f0 (patch)
tree8196b23f7e8a35d087a0ea8f13b46cdddeca8301 /test/pyhttpd/curl.py
parentAdding debian version 2.4.59-2. (diff)
downloadapache2-fbecfb724069de4192e191f0c662846c3e8588f0.tar.xz
apache2-fbecfb724069de4192e191f0c662846c3e8588f0.zip
Merging upstream version 2.4.60.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/pyhttpd/curl.py')
-rw-r--r--test/pyhttpd/curl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pyhttpd/curl.py b/test/pyhttpd/curl.py
index 5a215cd..3d7993f 100644
--- a/test/pyhttpd/curl.py
+++ b/test/pyhttpd/curl.py
@@ -112,7 +112,7 @@ class CurlPiper:
recv_times = []
for line in "".join(recv_err).split('\n'):
m = re.match(r'^\s*(\d+:\d+:\d+(\.\d+)?) <= Recv data, (\d+) bytes.*', line)
- if m:
+ if m and int(m.group(3)) > 0:
recv_times.append(datetime.time.fromisoformat(m.group(1)))
# received as many chunks as we sent
assert len(chunks) == len(recv_times), "received response not in {0} chunks, but {1}".format(