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

Side by Side Diff: LayoutTests/http/tests/resources/redirect.php

Issue 976263002: HTML Imports: Teach preloader about HTML Imports. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 $sleep = $_GET['delay'];
3 if (isset($sleep))
4 usleep($sleep*1000);
2 $url = $_GET['url']; 5 $url = $_GET['url'];
3 $refresh = $_GET['refresh']; 6 $refresh = $_GET['refresh'];
4 7
5 if (isset($refresh)) { 8 if (isset($refresh)) {
6 header("HTTP/1.1 200"); 9 header("HTTP/1.1 200");
7 header("Refresh: $refresh; url=$url"); 10 header("Refresh: $refresh; url=$url");
8 return; 11 return;
9 } 12 }
10 13
11 header("Location: $url"); 14 header("Location: $url");
12 if (isset($_GET['cors_allow_origin'])) 15 if (isset($_GET['cors_allow_origin']))
13 header("Access-Control-Allow-Origin: " . $_GET['cors_allow_origin']); 16 header("Access-Control-Allow-Origin: " . $_GET['cors_allow_origin']);
14 17
15 $code = $_GET['code']; 18 $code = $_GET['code'];
16 if (!isset($code)) 19 if (!isset($code))
17 $code = 302; 20 $code = 302;
18 header("HTTP/1.1 $code"); 21 header("HTTP/1.1 $code");
19 ?> 22 ?>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/preload.html ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698