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

Unified Diff: pkg/http_server/test/http_multipart_test.dart

Issue 739533002: Handle multipart MIME parsing with no parts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | pkg/mime/CHANGELOG.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/test/http_multipart_test.dart
diff --git a/pkg/http_server/test/http_multipart_test.dart b/pkg/http_server/test/http_multipart_test.dart
index d1d08434fcaa0c915e93550c34d42dce9e5ecb28..f7e5cbb4c9a7abd2f9c926055ca5e207b745b430 100644
--- a/pkg/http_server/test/http_multipart_test.dart
+++ b/pkg/http_server/test/http_multipart_test.dart
@@ -93,6 +93,16 @@ void postDataTest(List<int> message,
});
}
+void testEmptyPostData() {
+ var message = '''
+------WebKitFormBoundaryU3FBruSkJKG0Yor1--\r\n''';
+
+ postDataTest(message.codeUnits,
+ 'multipart/form-data',
+ '----WebKitFormBoundaryU3FBruSkJKG0Yor1',
+ []);
+}
+
void testPostData() {
var message = '''
\r\n--AaB03x\r
@@ -212,5 +222,6 @@ Content of file\r
void main() {
+ testEmptyPostData();
testPostData();
}
« no previous file with comments | « no previous file | pkg/mime/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698