Skip to content

Commit

Permalink
Make the Expires header parse as a plain string
Browse files Browse the repository at this point in the history
Google is sending these headers with value '-1', which doesn't parse.
  • Loading branch information
brson committed Sep 6, 2013
1 parent f214af6 commit a195a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libhttp/headers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,6 @@ headers_mod! {
24, "Content-MD5", "Content-Md5", ContentMd5, content_md5, ~str;
25, "Content-Range", "Content-Range", ContentRange, content_range, ~str;
26, "Content-Type", "Content-Type", ContentType, content_type, headers::content_type::MediaType;
27, "Expires", "Expires", Expires, expires, extra::time::Tm;
27, "Expires", "Expires", Expires, expires, ~str; // TODO: Should be Tm
28, "Last-Modified", "Last-Modified", LastModified, last_modified, extra::time::Tm;
}

0 comments on commit a195a9e

Please sign in to comment.