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

Side by Side Diff: LayoutTests/http/tests/multipart/policy-ignore-crash.php

Issue 16848005: Remove support for multipart/x-mixed-replace (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <?php
2 header('Content-type: multipart/x-mixed-replace;boundary=asdf');
3 ?>--asdf
4 Content-type: text/html
5
6 <p>This test passes if it does not crash.</p>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
10 </script>
11
12 <?php
13 # Add some padding because CFNetwork merges small multipart segments together.
14 echo str_pad('', 5000);
15
16 ob_flush();
17 flush();
18 ?>
19 --asdf
20 Content-type: text/rtf
21
22 This chunk has an unsupported text mime type, which can cause the policy
23 for this load to be ignored. This causes the request to be canceled.
24
25 <?php
26 # Add some padding because CFNetwork merges small multipart segments together.
27 echo str_pad('', 5000);
28 ?>
29
30 --asdf--
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698