Skip to content

Commit

Permalink
Move the constants so they can be seen by Rack 3 adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 11, 2023
1 parent 3a9ff0e commit 5718835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/protocol/rack/adapter/rack2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ class Rack2 < Generic
RACK_MULTIPROCESS = 'rack.multiprocess'
RACK_RUN_ONCE = 'rack.run_once'

RACK_IS_HIJACK = 'rack.hijack?'
RACK_HIJACK = 'rack.hijack'

def self.wrap(app)
Rewindable.new(self.new(app))
end
Expand Down
4 changes: 4 additions & 0 deletions lib/protocol/rack/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ module CGI
RACK_URL_SCHEME = 'rack.url_scheme'
RACK_PROTOCOL = 'rack.protocol'
RACK_RESPONSE_FINISHED = 'rack.response_finished'

# Rack hijack support:
RACK_IS_HIJACK = 'rack.hijack?'
RACK_HIJACK = 'rack.hijack'
end
end

0 comments on commit 5718835

Please sign in to comment.