perf(headers): check for header literals before allocating name
This commit is contained in:
		| @@ -176,7 +176,8 @@ impl FromStr for ByteRangeSpec { | ||||
| impl Header for Range { | ||||
|  | ||||
|     fn header_name() -> &'static str { | ||||
|         "Range" | ||||
|         static NAME: &'static str = "Range"; | ||||
|         NAME | ||||
|     } | ||||
|  | ||||
|     fn parse_header(raw: &[Vec<u8>]) -> ::Result<Range> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user