fix(http1): ending close-delimited body should close (#2322)
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
		| @@ -81,6 +81,13 @@ impl Encoder { | ||||
|         self.is_last | ||||
|     } | ||||
|  | ||||
|     pub fn is_close_delimited(&self) -> bool { | ||||
|         match self.kind { | ||||
|             Kind::CloseDelimited => true, | ||||
|             _ => false, | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub fn end<B>(&self) -> Result<Option<EncodedBuf<B>>, NotEof> { | ||||
|         match self.kind { | ||||
|             Kind::Length(0) => Ok(None), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user