lib/protocol/http/headers.rb in protocol-http-0.14.1 vs lib/protocol/http/headers.rb in protocol-http-0.14.2
- old
+ new
@@ -23,10 +23,11 @@
require_relative 'header/split'
require_relative 'header/multiple'
require_relative 'header/cookie'
require_relative 'header/connection'
require_relative 'header/cache_control'
+require_relative 'header/vary'
module Protocol
module HTTP
# Headers are an array of key-value pairs. Some header keys represent multiple values.
class Headers
@@ -147,9 +148,10 @@
'location' => false,
'max-forwards' => false,
'connection' => Header::Connection,
'cache-control' => Header::CacheControl,
+ 'vary' => Header::Vary,
# Headers specifically for proxies:
'via' => Split,
'x-forwarded-for' => Split,