From a195a9ee8c06b8bc4373a38ab1fa34d6abd50be8 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 6 Sep 2013 15:32:27 -0700 Subject: [PATCH] Make the Expires header parse as a plain string Google is sending these headers with value '-1', which doesn't parse. --- src/libhttp/headers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libhttp/headers/mod.rs b/src/libhttp/headers/mod.rs index e445a74..0d5e6b5 100644 --- a/src/libhttp/headers/mod.rs +++ b/src/libhttp/headers/mod.rs @@ -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; }