Avoid sending headers as trailers twice (#244)

This commit is contained in:
Sigurd Meldgaard 2019-10-24 09:35:28 +02:00 committed by GitHub
parent e70ea6f2d0
commit 588c21e542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 2.1.3
* Fix a state bug in the server.
## 2.1.2
* Fix bug introduced in 2.1.1 where the port would be added to the default authority when making a
@ -5,7 +9,7 @@
## 2.1.1
* Fix bug introduced in 2.1.0 where an explicit `authority` would not be used when making a secure
* Fix bug introduced in 2.1.0 where an explicit `authority` would not be used when making a secure
connection.
## 2.1.0

View File

@ -283,6 +283,7 @@ class ServerHandler_ extends ServiceCall {
_customHeaders..remove(':status')..remove('content-type');
outgoingTrailersMap.addAll(_customHeaders);
_customHeaders = null;
_headersSent = true;
}
_customTrailers..remove(':status')..remove('content-type');
outgoingTrailersMap.addAll(_customTrailers);

View File

@ -1,7 +1,7 @@
name: grpc
description: Dart implementation of gRPC, a high performance, open-source universal RPC framework.
version: 2.1.2
version: 2.1.3
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/grpc-dart