Update all common headers for the new Header trait split
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| use header::Header; | ||||
| use header::{Header, HeaderFormat}; | ||||
| use std::fmt::{mod, Show}; | ||||
| use super::util::from_one_raw_str; | ||||
|  | ||||
| @@ -16,7 +16,9 @@ impl Header for UserAgent { | ||||
|     fn parse_header(raw: &[Vec<u8>]) -> Option<UserAgent> { | ||||
|         from_one_raw_str(raw).map(|s| UserAgent(s)) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl HeaderFormat for UserAgent { | ||||
|     fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | ||||
|         let UserAgent(ref value) = *self; | ||||
|         value.fmt(fmt) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user