From 015e5bca341c252df600821a8cba88fd435d18cf Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 29 Aug 2022 10:09:49 +1200 Subject: Mention that it is an Array. --- SPEC.rdoc | 4 ++-- lib/rack/lint.rb | 4 ++-- 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. rack.protocol:: 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 ## rack.protocol:: 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 -- cgit v1.2.1