aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/fetch/api/resources/trickle.py')
-rw-r--r--tests/wpt/web-platform-tests/fetch/api/resources/trickle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py b/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py
index 0e709445c59..319ecd21f45 100644
--- a/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py
+++ b/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py
@@ -3,6 +3,8 @@ import time
def main(request, response):
delay = float(request.GET.first("ms", 500)) / 1E3
count = int(request.GET.first("count", 50))
+ # Read request body
+ request.body
time.sleep(delay)
response.headers.set("Content-type", "text/plain")
response.write_status_headers()