Make Rack::Static custom headers thread safe
authorMatt Wildig <matt@mattwildig.co.uk>
Mon, 20 May 2013 22:55:10 +0000 (23:55 +0100)
committerMatt Wildig <matt@mattwildig.co.uk>
Mon, 20 May 2013 23:00:27 +0000 (00:00 +0100)
commita707834a5be353c13ba0984ddd0f5b61ece1b5f0
treee56eecdb1bffd7af3433f672e3c6b7dcb8765a42
parent838865f86ea538015f6c49e2c4935bab56533bdb
Make Rack::Static custom headers thread safe

 * Do not manipulate instance variables of Rack::File, add new headers
   after return from the file server.

 * Do not use instance variable to store path, use local vars and params
   instead.

Fixes #558
lib/rack/static.rb