diff options
Diffstat (limited to 'testing/web-platform/tests/cors/resources/expose-headers.py')
-rw-r--r-- | testing/web-platform/tests/cors/resources/expose-headers.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/cors/resources/expose-headers.py b/testing/web-platform/tests/cors/resources/expose-headers.py new file mode 100644 index 0000000000..4e568f4063 --- /dev/null +++ b/testing/web-platform/tests/cors/resources/expose-headers.py @@ -0,0 +1,11 @@ +def main(request, response): + response.add_required_headers = False + output = b"HTTP/1.1 221 ALL YOUR BASE BELONG TO H1\r\n" + output += b"Access-Control-Allow-Origin: *\r\n" + output += b"Connection: close\r\n" + output += b"BB-8: hey\r\n" + output += b"Content-Language: mkay\r\n" + output += request.GET.first(b"expose") + b"\r\n" + output += b"\r\n" + response.writer.write(output) + response.close_connection = True |