| 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..eae575bda177dd67b3eb827cdea03f134c1fbba3 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,14 @@ 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]. See more
|
| + * information in the
|
| + * [HTML5 spec](http://dev.w3.org/html5/spec-preview/
|
| + * constraints.html#multipart-form-data).
|
| */
|
| - static HttpMultipartFormData parse(MimeMultipart multipart)
|
| - => _HttpMultipartFormData.parse(multipart);
|
| + static HttpMultipartFormData parse(MimeMultipart multipart,
|
| + {Encoding defaultEncoding: UTF8})
|
| + => _HttpMultipartFormData.parse(multipart, defaultEncoding);
|
| }
|
|
|