Sha256: 7aad22023a9547502c23f4b3c54c5ab8cb7195a74426acc5a22c6b6fd7c183dc
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
class Rack::App::Middlewares::Configuration::PathInfoFormatter def initialize(app, cut_string_from_path) @cut_string_from_path = cut_string_from_path @app = app end def call(env) env[::Rack::App::Constants::ENV::ORIGINAL_PATH_INFO]= env[::Rack::App::Constants::ENV::PATH_INFO].dup env[::Rack::App::Constants::ENV::PATH_INFO].sub!(@cut_string_from_path, '') @app.call(env) end end
Version data entries
3 entries across 3 versions & 1 rubygems