lib/protocol/http/headers.rb in protocol-http-0.24.5 vs lib/protocol/http/headers.rb in protocol-http-0.24.6
- old
+ new
@@ -239,11 +239,16 @@
# Custom headers:
'set-cookie' => Header::SetCookie,
'cookie' => Header::Cookie,
+ # Date headers:
+ # These headers include a comma as part of the formatting so they can't be concatenated.
'date' => Header::Date,
'expires' => Header::Date,
+ 'last-modified' => Header::Date,
+ 'if-modified-since' => Header::Date,
+ 'if-unmodified-since' => Header::Date,
}.tap{|hash| hash.default = Split}
# Delete all headers with the given key, and return the merged value.
def delete(key)
deleted, @fields = @fields.partition do |field|