fix(http1): remove panic for HTTP upgrades that have been ignored (#2115)

Closes #2114
This commit is contained in:
Sean McArthur
2020-01-23 16:41:40 -08:00
committed by GitHub
parent ba2a144f8b
commit 1881db6391
2 changed files with 40 additions and 1 deletions

View File

@@ -902,7 +902,6 @@ impl State {
}
fn prepare_upgrade(&mut self) -> crate::upgrade::OnUpgrade {
debug_assert!(self.upgrade.is_none());
let (tx, rx) = crate::upgrade::pending();
self.upgrade = Some(tx);
rx