You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Rack::ReverseProxyMatcher
alias_method :get_uri_without_decode, :get_uri
def get_uri(path,env)
puts 'this is a monkeypatched method for :get_uri'
url = get_uri_without_decode(path,env)
if url.path.start_with?('http%')
url = URI.decode url.path
url = URI(url)
end
url
end
end
The text was updated successfully, but these errors were encountered:
I had to create a reverse proxy for
encoded_uri
in this URL:The configuration of the proxy:
The problem is that the implementation of get_uri doesnt take into account the URL encoding of the parameter and it returns:
which causes an internal server error.
My fix:
The text was updated successfully, but these errors were encountered: