We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f64cf8 commit 1e1341aCopy full SHA for 1e1341a
lib/protocol/rack/request.rb
@@ -46,7 +46,7 @@ def initialize(env)
46
# Checks both `rack.protocol` and `HTTP_UPGRADE` headers.
47
#
48
# @parameter env [Hash] The Rack environment hash.
49
- # @returns [Array<String> | Nil] The list of protocols or nil if none specified.
+ # @returns [Array(String) | Nil] The list of protocols or `nil` if none specified.
50
def self.protocol(env)
51
if protocols = env["rack.protocol"]
52
return Array(protocols)
0 commit comments