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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/resources/mixed-range-response.php

Issue 1356353003: Relax cross-origin partial response requirements for CORS presence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental php change. Created 5 years, 1 month 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 if (isset($_SERVER['HTTP_RANGE']) && ($_SERVER['HTTP_RANGE'] == 'bytes=0-')) { 2 if (isset($_SERVER['HTTP_RANGE']) && ($_SERVER['HTTP_RANGE'] == 'bytes=0-')) {
3 header('HTTP/1.0 206 Partial Content'); 3 header('HTTP/1.0 206 Partial Content');
4 if (isset($_GET['cors_allow_origin'])) {
5 header("Access-Control-Allow-Origin: " . $_GET['cors_allow_origin']);
6 }
4 header('Content-Type: audio/ogg'); 7 header('Content-Type: audio/ogg');
5 # 12983 is the file size of media/content/silence.oga. 8 # 12983 is the file size of media/content/silence.oga.
6 header('Content-Range: bytes 0-2/12983'); 9 header('Content-Range: bytes 0-2/12983');
7 echo 'Ogg'; 10 echo 'Ogg';
8 return; 11 return;
9 } 12 }
10 header('HTTP/1.1 307 Temporary Redirect'); 13 header('HTTP/1.1 307 Temporary Redirect');
11 header('Location: ' . $_GET["location"]); 14 header('Location: ' . $_GET["location"]);
15 if (isset($_GET['cors_allow_origin'])) {
16 header("Access-Control-Allow-Origin: " . $_GET['cors_allow_origin']);
17 }
12 ?> 18 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698