Vendor Rack 1.0.1

Incorporate patch from Revision 496.
This commit is contained in:
Jacques Distler 2009-12-18 20:16:58 -06:00
parent a7202d54cd
commit 76f388f3e2
113 changed files with 5759 additions and 199 deletions

18
vendor/plugins/rack/KNOWN-ISSUES vendored Normal file
View file

@ -0,0 +1,18 @@
= Known issues with Rack and Web servers
* Lighttpd sets wrong SCRIPT_NAME and PATH_INFO if you mount your
FastCGI app at "/". This can be fixed by using this middleware:
class LighttpdScriptNameFix
def initialize(app)
@app = app
end
def call(env)
env["PATH_INFO"] = env["SCRIPT_NAME"].to_s + env["PATH_INFO"].to_s
env["SCRIPT_NAME"] = ""
@app.call(env)
end
end
Of course, use this only when your app runs at "/".