Index: pkg/http_server/lib/src/http_multipart_form_data.dart |
diff --git a/pkg/http_server/lib/src/http_multipart_form_data.dart b/pkg/http_server/lib/src/http_multipart_form_data.dart |
index 86b4604acc0c70254762b76e01025352dbc736cc..e7b9442f73b78cc490e5eac57ee9cfb97c73b91f 100644 |
--- a/pkg/http_server/lib/src/http_multipart_form_data.dart |
+++ b/pkg/http_server/lib/src/http_multipart_form_data.dart |
@@ -67,7 +67,11 @@ abstract class HttpMultipartFormData implements Stream { |
* Parse a [MimeMultipart] and return a [HttpMultipartFormData]. If the |
* [:Content-Disposition:] header is missing or invalid, a [HttpException] is |
* thrown. |
+ * |
+ * If the [MimeMultipart] is identified as text, and the [:Content-Type:] |
+ * header is missing, the data is decoded using [defaultEncoding]. |
Søren Gjesse
2013/10/10 12:37:06
Maybe add a link to the HTML5 spec for this, and m
Anders Johnsen
2013/10/10 13:24:15
Added link.
|
*/ |
- static HttpMultipartFormData parse(MimeMultipart multipart) |
- => _HttpMultipartFormData.parse(multipart); |
+ static HttpMultipartFormData parse(MimeMultipart multipart, |
+ {Encoding defaultEncoding: UTF8}) |
+ => _HttpMultipartFormData.parse(multipart, defaultEncoding); |
} |