Sha256: 2dd2fa1a00df96c4b535ebf1029c22db146bbe9f49db34fe22d4efd70177ea9c
Contents?: true
Size: 473 Bytes
Versions: 34
Compression:
Stored size: 473 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require File.dirname(__FILE__) + '/../config/environment' class Rack::PathInfoRewriter def initialize(app) @app = app end def call(env) env.delete('SCRIPT_NAME') parts = env['REQUEST_URI'].split('?') env['PATH_INFO'] = parts[0] env['QUERY_STRING'] = parts[1].to_s @app.call(env) end end Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(RedmineApp::Application)
Version data entries
34 entries across 34 versions & 1 rubygems