summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-12 18:51:20 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-12 18:51:20 +1300
commitacc157035ebf1774cb67b954420cc2d29071bcf0 (patch)
tree66beb5634aa0f09c477494c97fd0949966e42707
parent4936448688ef2b0fb46301414b662042103a06fa (diff)
downloadrack-acc157035ebf1774cb67b954420cc2d29071bcf0.tar.gz
Tidy up constants and fix EXPIRES header to be lower case.
-rw-r--r--lib/rack.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack.rb b/lib/rack.rb
index 16eb58da..73625065 100644
--- a/lib/rack.rb
+++ b/lib/rack.rb
@@ -17,6 +17,7 @@ module Rack
HTTP_HOST = 'HTTP_HOST'
HTTP_PORT = 'HTTP_PORT'
HTTP_VERSION = 'HTTP_VERSION'
+ HTTP_COOKIE = 'HTTP_COOKIE'
HTTPS = 'HTTPS'
PATH_INFO = 'PATH_INFO'
REQUEST_METHOD = 'REQUEST_METHOD'
@@ -27,12 +28,11 @@ module Rack
SERVER_NAME = 'SERVER_NAME'
SERVER_PORT = 'SERVER_PORT'
CACHE_CONTROL = 'cache-control'
- EXPIRES = 'Expires'
+ EXPIRES = 'expires'
CONTENT_LENGTH = 'content-length'
CONTENT_TYPE = 'content-type'
SET_COOKIE = 'set-cookie'
TRANSFER_ENCODING = 'transfer-encoding'
- HTTP_COOKIE = 'HTTP_COOKIE'
ETAG = 'etag'
# HTTP method verbs