Validate received content-length header (#43)
If a content-length header is provided, the value should match the sum of all data frame lengths. If there is a mismatch, then the stream is reset.
This commit is contained in:
		| @@ -266,6 +266,10 @@ impl Headers { | ||||
|         (self.pseudo, self.fields) | ||||
|     } | ||||
|  | ||||
|     pub fn fields(&self) -> &HeaderMap { | ||||
|         &self.fields | ||||
|     } | ||||
|  | ||||
|     pub fn into_fields(self) -> HeaderMap { | ||||
|         self.fields | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user