Index: third_party/WebKit/LayoutTests/http/tests/navigation/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/navigation/resources/redirection-response.php |
deleted file mode 100644 |
index 50b23fbcf21f765640471efa0bd13c2e0e111ae2..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/redirection-response.php |
+++ /dev/null |
@@ -1,31 +0,0 @@ |
-<?php |
-$status_code = $_GET['status']; |
- |
-$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "/" . $_GET['target']; |
- |
-$host = $_SERVER['HTTP_HOST']; |
-if (isset($_GET['host'])) |
- $host = $_GET['host']; |
- |
-switch ($status_code) { |
- case 301: |
- header("HTTP/1.1 301 Moved Permanently"); |
- header("Location: http://" . $host . $uri); |
- break; |
- case 302: |
- header("HTTP/1.1 302 Found"); |
- header("Location: http://" . $host . $uri); |
- break; |
- case 303: |
- header("HTTP/1.1 303 See Other"); |
- header("Location: http://" . $host . $uri); |
- break; |
- case 307: |
- header("HTTP/1.1 307 Temporary Redirect"); |
- header("Location: http://" . $host . $uri); |
- break; |
- default: |
- header("HTTP/1.1 500 Internal Server Error"); |
- echo "Unexpected status code ($status_code) received."; |
-} |
-?> |