flyerhzm/bullet — pull request #56 by duncanbeevers (2012-02-19 12:19:32+00:00)
Title: Preserve initial response object if possible

The Bullet middleware currently serves responses by rewrapping `response.body`.

In development mode Rails 3.2 (haven't checked earlier versions) serves bundled assets as a `Sprockets::BundledAsset`. This object's `body` method returns just the content of the original file without the concatenated requirements.

This change preserves whatever response object was returned from the underlying app unless some rewriting occurred.