property treat header names as case insensitive

This commit is contained in:
Sean McArthur
2014-09-23 09:02:58 -07:00
parent 11d8b12fa3
commit 0191bff43a
10 changed files with 66 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ pub struct Accept(pub Vec<Mime>);
impl Header for Accept {
fn header_name(_: Option<Accept>) -> &'static str {
"accept"
"Accept"
}
fn parse_header(_raw: &[Vec<u8>]) -> Option<Accept> {