lib/wunderbar/rack.rb in wunderbar-1.3.4 vs lib/wunderbar/rack.rb in wunderbar-1.4.0
- old
+ new
@@ -15,11 +15,9 @@
if file
mime = file[:mime] ||
Rack::Mime::MIME_TYPES[File.extname(env['PATH_INFO'])]
@_response.set_header('Content-Type', mime) if mime
@_response.write(file[:content] || file[:source].call)
- elsif Wunderbar.safe? and $SAFE==0
- Proc.new { $SAFE=1; Wunderbar::CGI.call(self) }.call
else
Wunderbar::CGI.call(self)
end
@_response.finish
end