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

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

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/post-formdata-expected.txt ('k') | Source/core/dom/DOMURL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php b/LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php
index 9e7281b11b47b98f1fe9667e6607d74953628690..4b0ac105a22b8a621a43057eff0e7cbe7c8f9236 100644
--- a/LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php
@@ -18,7 +18,7 @@ foreach ($_FILES as $key => $value) {
} else {
$fp = fopen($file['tmp_name'], 'r');
if ($fp) {
- $content = fread($fp, $file['size']);
+ $content = $file['size'] > 0 ? fread($fp, $file['size']) : "";
fclose($fp);
}
$values[] = $key . '=' . $file['name'] . ':' . $file['type'] . ':' . $content;
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/post-formdata-expected.txt ('k') | Source/core/dom/DOMURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698