Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make Rack::Recursive thread safe by removing shared state

  • Loading branch information...
commit dbff8799498100531e572daf69c5c1ccf4d59c02 1 parent 16dc2d1
@raggi raggi authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rack/recursive.rb
View
4 lib/rack/recursive.rb
@@ -35,6 +35,10 @@ def initialize(app)
end
def call(env)
+ dup._call(env)
+ end
+
+ def _call(env)
@script_name = env["SCRIPT_NAME"]
@app.call(env.merge('rack.recursive.include' => method(:include)))
rescue ForwardRequest => req
Please sign in to comment.
Something went wrong with that request. Please try again.