Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php

Issue 897923003: [Test] [Fetch][XHR] Patch for testing Location header in Preflight Response (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
index ca767d3c33a47754bdd01662f776c30d223999e3..44d803791e61d6d15d3870b61444fb8ca0c0425d 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
@@ -26,6 +26,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS' && isset($_GET['PreflightTest'])) {
header("HTTP/1.1 {$_GET['PreflightTest']}");
}
+if (isset($_GET[$prefix . 'Redirect'])) {
+ header('Location: ' . $_GET[$prefix . 'Redirect']);
+}
+
if (isset($_GET[$prefix . 'ACAOrigin'])) {
$origins = explode(',', $_GET[$prefix . 'ACAOrigin']);
for ($i = 0; $i < sizeof($origins); ++$i)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698