mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 18:26:10 +01:00
Code style fixes
This commit is contained in:
parent
c6bbc67dab
commit
d8acf60049
72 changed files with 458 additions and 594 deletions
|
|
@ -7,17 +7,17 @@ require 'rack'
|
|||
require 'fcgi'
|
||||
|
||||
class Rack::PathInfoRewriter
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
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
|
||||
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(Tracksapp::Application)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue