Skip to content

Commit

Permalink
Replace reference to non-standard rack header REQUEST_PATH
Browse files Browse the repository at this point in the history
This header has never been defined by rack. Replaced with the
standard Rack::Request implementation.
  • Loading branch information
sfnelson committed Sep 2, 2024
1 parent 91c554f commit 63eeddf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
koi (2.6.7)
koi (2.6.8)
acts-as-taggable-on (>= 7.0.0)
awesome_nested_set (>= 3.3.0)
cocoon (>= 1.2.15)
Expand Down
2 changes: 1 addition & 1 deletion lib/koi/middleware/url_redirect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(app)
def call(env)
status, headers, body = @app.call(env)

current_path = env["REQUEST_PATH"]
current_path = "#{env["SCRIPT_NAME"]}#{env["PATH_INFO"]}"

if status.to_i == 404 && current_path.exclude?("mini-profiler-resources") && new_path = find_redirect(current_path)
request = ActionDispatch::Request.new(env)
Expand Down
2 changes: 1 addition & 1 deletion lib/koi/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Koi
VERSION = "2.6.7"
VERSION = "2.6.8"
end

0 comments on commit 63eeddf

Please sign in to comment.