mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Unescape PATH_INFO
This commit is contained in:
parent
a742e96b00
commit
a7814923fc
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
require 'rack'
|
||||
|
||||
module Sidekiq
|
||||
module WebRouter
|
||||
|
@ -42,7 +43,7 @@ module Sidekiq
|
|||
|
||||
def match(env)
|
||||
request_method = env[REQUEST_METHOD]
|
||||
path_info = env[PATH_INFO]
|
||||
path_info = ::Rack::Utils.unescape env[PATH_INFO]
|
||||
|
||||
@routes[request_method].each do |route|
|
||||
if params = route.match(request_method, path_info)
|
||||
|
|
Loading…
Reference in a new issue