diff options
Diffstat (limited to 'testing/web-platform/tests/xhr/resources/echo-content-type.py')
-rw-r--r-- | testing/web-platform/tests/xhr/resources/echo-content-type.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/xhr/resources/echo-content-type.py b/testing/web-platform/tests/xhr/resources/echo-content-type.py new file mode 100644 index 0000000000..595c88f32a --- /dev/null +++ b/testing/web-platform/tests/xhr/resources/echo-content-type.py @@ -0,0 +1,6 @@ +def main(request, response): + response.headers.set(b"Content-Type", b"text/plain") + response.headers.set(b"Connection", b"close") + response.status = 200 + response.content = request.headers.get(b"Content-Type") + response.close_connection = True |