# File lib/innate/rack_file_wrapper.rb, line 7 7: def call(env) 8: status, header, body = @file.call(env) 9: 10: if status == 403 11: unless Rack::File::ALLOWED_VERBS.include?(env['REQUEST_METHOD']) 12: body = "File not Found: #{Rack::Utils.unescape(env['PATH_INFO'])}\n" 13: return 404, { 14: 'Content-Type' => 'text/plain', 15: 'Content-Length' => body.size, 16: 'X-Cascade' => 'pass', 17: }, [body] 18: end 19: end 20: 21: return status, header, body 22: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.