Skip to content

Commit

Permalink
Revert "Remove grpc-timeout header from reserved headers (#603)"
Browse files Browse the repository at this point in the history
This reverts commit 0b53598.
  • Loading branch information
LucioFranco committed Apr 13, 2021
1 parent 49f6137 commit 7aaa2f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tonic/src/metadata/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,11 @@ pub struct OccupiedEntry<'a, VE: ValueEncoding> {

impl MetadataMap {
// Headers reserved by the gRPC protocol.
pub(crate) const GRPC_RESERVED_HEADERS: [&'static str; 7] = [
pub(crate) const GRPC_RESERVED_HEADERS: [&'static str; 8] = [
"te",
"user-agent",
"content-type",
"grpc-timeout",
"grpc-message",
"grpc-encoding",
"grpc-message-type",
Expand Down

0 comments on commit 7aaa2f8

Please sign in to comment.