mrbrdo/rack-webconsole — pull request #2 by aishfenton (2012-11-15 19:02:00+00:00)
Title: Fixes issue causing errors on some response objects, such as Rack::File

This fixes an issue causing errors on some response objects, such as Rack::File.

The problem is that #first isn't guaranteed to be defined on the Rack response object (as is assumed in Assets.rb). You see this with Rack::File responses, for instance.

The Rack spec does guarantee an #each method though. So pull request augments the response with a #first method that uses #each.