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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/resources/redirection-response.php

Issue 2702113003: Move tests for sendBeacon to a separate dedicated directory for clearer ownership (Closed)
Patch Set: a Created 3 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
Index: third_party/WebKit/LayoutTests/http/tests/resources/redirection-response.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/redirection-response.php b/third_party/WebKit/LayoutTests/http/tests/resources/redirection-response.php
similarity index 67%
rename from third_party/WebKit/LayoutTests/http/tests/navigation/resources/redirection-response.php
rename to third_party/WebKit/LayoutTests/http/tests/resources/redirection-response.php
index 50b23fbcf21f765640471efa0bd13c2e0e111ae2..808af4570ae8aee3416f664b137db85918c34df4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/redirection-response.php
+++ b/third_party/WebKit/LayoutTests/http/tests/resources/redirection-response.php
@@ -1,7 +1,6 @@
<?php
$status_code = $_GET['status'];
-
-$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "/" . $_GET['target'];
+$target_path = $_GET['target'];
$host = $_SERVER['HTTP_HOST'];
if (isset($_GET['host']))
@@ -10,19 +9,19 @@ if (isset($_GET['host']))
switch ($status_code) {
case 301:
header("HTTP/1.1 301 Moved Permanently");
- header("Location: http://" . $host . $uri);
+ header("Location: http://" . $host . $target_path);
break;
case 302:
header("HTTP/1.1 302 Found");
- header("Location: http://" . $host . $uri);
+ header("Location: http://" . $host . $target_path);
break;
case 303:
header("HTTP/1.1 303 See Other");
- header("Location: http://" . $host . $uri);
+ header("Location: http://" . $host . $target_path);
break;
case 307:
header("HTTP/1.1 307 Temporary Redirect");
- header("Location: http://" . $host . $uri);
+ header("Location: http://" . $host . $target_path);
break;
default:
header("HTTP/1.1 500 Internal Server Error");

Powered by Google App Engine
This is Rietveld 408576698