diff options
Diffstat (limited to 'testing/web-platform/tests/xhr/resources/echo-headers.py')
-rw-r--r-- | testing/web-platform/tests/xhr/resources/echo-headers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/xhr/resources/echo-headers.py b/testing/web-platform/tests/xhr/resources/echo-headers.py new file mode 100644 index 0000000000..58a7ed5637 --- /dev/null +++ b/testing/web-platform/tests/xhr/resources/echo-headers.py @@ -0,0 +1,7 @@ +def main(request, response): + response.writer.write_status(200) + response.writer.write_header(b"Content-Type", b"text/plain") + response.writer.write_header(b"Connection", b"close") + response.writer.end_headers() + response.writer.write(str(request.raw_headers)) + response.close_connection = True |