summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-08-29 10:09:49 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-08-29 10:09:49 +1200
commit015e5bca341c252df600821a8cba88fd435d18cf (patch)
tree92cb67be15e4cef6be6d50cbe266aa80c23f3d8e
parentab6cd41977b4f7cf80b9790b050c4c3ba5853da7 (diff)
downloadrack-protocol.tar.gz
Mention that it is an Array.rack-protocol
-rw-r--r--SPEC.rdoc4
-rwxr-xr-xlib/rack/lint.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/SPEC.rdoc b/SPEC.rdoc
index 4adbe796..f4c90ab6 100644
--- a/SPEC.rdoc
+++ b/SPEC.rdoc
@@ -84,8 +84,8 @@ Rack-specific variables:
hijack.
<tt>rack.protocol</tt>:: If the request is an HTTP/1 upgrade or
HTTP/2 CONNECT with +:protocol+ pseudo
- header, this is set to the value of that
- header.
+ header, this is set to an +Array+
+ containing the value(s) of that header.
Additional environment specifications have approved to
standardized middleware APIs. None of these are required to
be implemented by the server.
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb
index b1ebd42d..5f2a0717 100755
--- a/lib/rack/lint.rb
+++ b/lib/rack/lint.rb
@@ -182,8 +182,8 @@ module Rack
## <tt>rack.protocol</tt>:: If the request is an HTTP/1 upgrade or
## HTTP/2 CONNECT with +:protocol+ pseudo
- ## header, this is set to the value of that
- ## header.
+ ## header, this is set to an +Array+
+ ## containing the value(s) of that header.
## Additional environment specifications have approved to
## standardized middleware APIs. None of these are required to