Skip to content

Commit eb10567

Browse files
ubnt-intrepidseanmonstar
authored andcommitted
fix(server): prevent to output Transfer-encoding when server upgrade (#1465)
1 parent 91b9700 commit eb10567

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/proto/h1/role.rs

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ impl Server<()> {
214214
match head.subject {
215215
// TODO: support for 1xx codes needs improvement everywhere
216216
// would be 100...199 => false
217+
StatusCode::SwitchingProtocols |
217218
StatusCode::NoContent |
218219
StatusCode::NotModified => false,
219220
_ => true,

0 commit comments

Comments
 (0)