1
0
Fork 0
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:
Amadeus Folego 2016-08-02 14:47:59 -03:00
parent a742e96b00
commit a7814923fc

View file

@ -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)