Index: LayoutTests/http/tests/media/resources/mixed-range-response.php |
diff --git a/LayoutTests/http/tests/media/resources/mixed-range-response.php b/LayoutTests/http/tests/media/resources/mixed-range-response.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6d6dbd927e6d1626b2cb5ffa3773293470bb46bb |
--- /dev/null |
+++ b/LayoutTests/http/tests/media/resources/mixed-range-response.php |
@@ -0,0 +1,12 @@ |
+<?php |
+if (isset($_SERVER['HTTP_RANGE']) && ($_SERVER['HTTP_RANGE'] == 'bytes=0-')) { |
+ header('HTTP/1.0 206 Partial Content'); |
+ header('Content-Type: audio/ogg'); |
+ # 12983 is the file size of media/content/silence.oga. |
+ header('Content-Range: bytes 0-2/12983'); |
+ echo 'Ogg'; |
+ return; |
+} |
+header('HTTP/1.1 307 Temporary Redirect'); |
+header('Location: ' . $_GET["location"]); |
+?> |