From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../early-hints/resources/get-fetch-timing-and-headers.h2.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py (limited to 'testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py') diff --git a/testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py b/testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py new file mode 100644 index 0000000000..59f67be3cf --- /dev/null +++ b/testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py @@ -0,0 +1,12 @@ +import importlib + +utils = importlib.import_module("loading.early-hints.resources.utils") + + +def main(request, response): + headers = [ + ("Content-Type", "application/json"), + ("Access-Control-Allow-Origin", "*"), + ] + body = utils.get_request_timing_and_headers(request) + return (200, "OK"), headers, body -- cgit v1.2.3