Add protocol version to response for client (#205)

This commit is contained in:
Kenjiro Nakayama
2018-01-03 05:45:11 +09:00
committed by Carl Lerche
parent 0c67f7a390
commit ecf2e425b4

View File

@@ -479,6 +479,8 @@ impl proto::Peer for Peer {
let stream_id = headers.stream_id();
let (pseudo, fields) = headers.into_parts();
b.version(Version::HTTP_2);
if let Some(status) = pseudo.status {
b.status(status);
}