lib/riemann/dash/rack/static.rb in riemann-dash-0.0.5 vs lib/riemann/dash/rack/static.rb in riemann-dash-0.1.0

- old
+ new

@@ -4,12 +4,12 @@ @root = options[:root] or raise ArgumentError, "no root" @file_server = ::Rack::File.new(@root) end def call(env) - r = @file_server.call env - if r[0] == 404 - @app.call env + r = @app.call env + if r[0] < 200 or 400 <= r[0] + @file_server.call env else r end end end