Skip to content

Commit

Permalink
fix(server): prevent to output Transfer-encoding when server upgrade (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ubnt-intrepid authored and seanmonstar committed Mar 19, 2018
1 parent 91b9700 commit eb10567
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proto/h1/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb10567

Please sign in to comment.