From f1d380882831ec83bda5fcfa975b7263e5c89756 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Mon, 31 Dec 2018 12:04:02 -0500 Subject: [PATCH] 2.0.0-alpha.18 --- CHANGELOG.md | 5 +++++ lib/src/http2/http2_request_context.dart | 3 ++- pubspec.yaml | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19cec9f1..c3ad2615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.0.0-alpha.18 +* Upgrade `http2` dependency. +* Upgrade `uuid` dependency. +* Fixed a bug that prevented body parsing from ever completing with `http2`. + # 2.0.0-alpha.17 * Revert the migration to `lumberjack` for now. In the future, when it's more stable, there'll be a conversion, perhaps. diff --git a/lib/src/http2/http2_request_context.dart b/lib/src/http2/http2_request_context.dart index b000be83..aa1f8889 100644 --- a/lib/src/http2/http2_request_context.dart +++ b/lib/src/http2/http2_request_context.dart @@ -112,6 +112,7 @@ class Http2RequestContext extends RequestContext { } }, onDone: () { finalize(); + req._body.close(); }, cancelOnError: true, onError: c.completeError); // Apply session @@ -119,7 +120,7 @@ class Http2RequestContext extends RequestContext { cookies.firstWhere((c) => c.name == 'DARTSESSID', orElse: () => null); if (dartSessId == null) { - dartSessId = new Cookie('DARTSESSID', uuid.v4() as String); + dartSessId = new Cookie('DARTSESSID', uuid.v4()); } req._session = sessions.putIfAbsent( diff --git a/pubspec.yaml b/pubspec.yaml index c6b11091..2513fadc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 2.0.0-alpha.17 +version: 2.0.0-alpha.18 description: A high-powered HTTP server with dependency injection, routing and much more. author: Tobe O homepage: https://github.com/angel-dart/angel_framework @@ -15,7 +15,7 @@ dependencies: file: ^5.0.0 http_parser: ^3.0.0 http_server: ^0.9.0 - http2: ">=0.1.7 <2.0.0" + http2: "^1.0.0" logging: ">=0.11.3 <1.0.0" matcher: ^0.12.0 merge_map: ^1.0.0 @@ -25,7 +25,7 @@ dependencies: path: ^1.0.0 stack_trace: ^1.0.0 tuple: ^1.0.0 - uuid: ^1.0.0 + uuid: ^2.0.0-rc.1 dev_dependencies: http: ^0.11.3 io: ^0.3.0