From eb105679271a6e0ccc09f37978314a1a8d686217 Mon Sep 17 00:00:00 2001 From: Yusuke Sasaki Date: Tue, 20 Mar 2018 02:27:54 +0900 Subject: [PATCH] fix(server): prevent to output Transfer-encoding when server upgrade (#1465) --- src/proto/h1/role.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proto/h1/role.rs b/src/proto/h1/role.rs index ed1762bd45..56826c8fea 100644 --- a/src/proto/h1/role.rs +++ b/src/proto/h1/role.rs @@ -214,6 +214,7 @@ impl Server<()> { match head.subject { // TODO: support for 1xx codes needs improvement everywhere // would be 100...199 => false + StatusCode::SwitchingProtocols | StatusCode::NoContent | StatusCode::NotModified => false, _ => true,