diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-06-16 08:20:51 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-06-16 10:58:22 +0000 |
commit | 1a24e35f18a311873ee77ffb5f046abea033a341 (patch) | |
tree | 059da1082512802b25780e8610ed0e41e78d681c /tests/wpt/web-platform-tests/fetch/api/resources | |
parent | 19c1f72eb2fe5178311161b6c85a67956a5a69b3 (diff) | |
download | servo-1a24e35f18a311873ee77ffb5f046abea033a341.tar.gz servo-1a24e35f18a311873ee77ffb5f046abea033a341.zip |
Update web-platform-tests to revision 4af6af604800559d2c58cf3561621ae43e28aaa8
Diffstat (limited to 'tests/wpt/web-platform-tests/fetch/api/resources')
-rw-r--r-- | tests/wpt/web-platform-tests/fetch/api/resources/trickle.py | 8 |
1 files changed, 4 insertions, 4 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 57c9407dc4b..9b3aa37b25c 100644 --- a/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py +++ b/tests/wpt/web-platform-tests/fetch/api/resources/trickle.py @@ -3,14 +3,14 @@ import time from six.moves import xrange def main(request, response): - delay = float(request.GET.first("ms", 500)) / 1E3 - count = int(request.GET.first("count", 50)) + delay = float(request.GET.first(b"ms", 500)) / 1E3 + count = int(request.GET.first(b"count", 50)) # Read request body request.body time.sleep(delay) - response.headers.set("Content-type", "text/plain") + response.headers.set(b"Content-type", b"text/plain") response.write_status_headers() time.sleep(delay) for i in xrange(count): - response.writer.write_content("TEST_TRICKLE\n") + response.writer.write_content(u"TEST_TRICKLE\n") time.sleep(delay) |