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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php

Issue 79953004: Improve fidelity of XHR progress events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make test stable Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php b/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php
new file mode 100644
index 0000000000000000000000000000000000000000..8d180669ec3b798fe40fd46f68e0eb8aa4b72060
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php
@@ -0,0 +1,10 @@
+<?php
+if (isset($_POST['type']))
+ header("Content-Type: {$_POST['type']}");
+else
+ header("Content-Type: text/plain");
+
+$str = @file_get_contents('php://input');
+header("Content-Length: " . strlen($str));
+echo $str;
+?>

Powered by Google App Engine
This is Rietveld 408576698