diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-08-01 12:24:43 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-08-01 12:24:43 +0200 |
commit | f58c3a4cdf6192dcce880e722b3398049066a571 (patch) | |
tree | 13c93041aebd385c4592b13b36b529c9f05739e7 | |
parent | b780e9f73ddff3bc8549654d722832ab873267b1 (diff) | |
download | rack-f58c3a4cdf6192dcce880e722b3398049066a571.tar.gz |
Make Rack::Lint threadsafe
reported by Sunny Hirai
-rw-r--r-- | lib/rack/lint.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb index 2dec03f6..2b81f10d 100644 --- a/lib/rack/lint.rb +++ b/lib/rack/lint.rb @@ -31,7 +31,11 @@ module Rack ## A Rack application is an Ruby object (not a class) that ## responds to +call+. - def call(env=nil) + def call(env=nil) + dup._call(env) + end + + def _call(env) ## It takes exactly one argument, the *environment* assert("No env given") { env } check_env env |