From b70b881e855bddf8f7604882ec38884f6ff70fbe Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 7 Mar 2017 15:42:01 -0500 Subject: [PATCH] 1.0.0 --- README.md | 4 +--- lib/src/parse_body.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38fdea9c..e27c829e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # Body Parser -![version 1.0.0-dev+5](https://img.shields.io/badge/version-1.0.0--dev+5-red.svg) +![version 1.0.0](https://img.shields.io/badge/version-1.0.0-brightgreen.svg) ![build status](https://travis-ci.org/thosakwe/body_parser.svg) -**NOT YET PRODUCTION READY** - Parse request bodies and query strings in Dart, as well multipart/form-data uploads. No external dependencies required. diff --git a/lib/src/parse_body.dart b/lib/src/parse_body.dart index bec9fb84..91a2f417 100644 --- a/lib/src/parse_body.dart +++ b/lib/src/parse_body.dart @@ -26,9 +26,9 @@ Future parseBody(HttpRequest request, Future getBody() async { if (storeOriginalBuffer) { List bytes = await getBytes(); - return UTF8.decode(result.originalBuffer = bytes); + return Uri.decodeFull(UTF8.decode(result.originalBuffer = bytes)); } else - return await request.transform(UTF8.decoder).join(); + return await request.transform(UTF8.decoder).join().then(Uri.decodeFull); } try { diff --git a/pubspec.yaml b/pubspec.yaml index eff46b08..2eeabbdd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: body_parser author: Tobe O -version: 1.0.0-dev+5 +version: 1.0.0 description: Parse request bodies and query strings in Dart. homepage: https://github.com/thosakwe/body_parser dependencies: