fix(server): prevent to output Transfer-encoding when server upgrade (#1465)
This commit is contained in:
committed by
Sean McArthur
parent
91b9700862
commit
eb10567927
@@ -214,6 +214,7 @@ impl Server<()> {
|
|||||||
match head.subject {
|
match head.subject {
|
||||||
// TODO: support for 1xx codes needs improvement everywhere
|
// TODO: support for 1xx codes needs improvement everywhere
|
||||||
// would be 100...199 => false
|
// would be 100...199 => false
|
||||||
|
StatusCode::SwitchingProtocols |
|
||||||
StatusCode::NoContent |
|
StatusCode::NoContent |
|
||||||
StatusCode::NotModified => false,
|
StatusCode::NotModified => false,
|
||||||
_ => true,
|
_ => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user