From fafeea085728e50bde52324d2fb08cbf69c4ef09 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Wed, 9 Jul 2014 10:46:03 -0700 Subject: [PATCH] Handle Rack responses from Sprockets --- middleman-core/lib/middleman-core/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/util.rb b/middleman-core/lib/middleman-core/util.rb index 8c7b8c4d..f2d1ac51 100644 --- a/middleman-core/lib/middleman-core/util.rb +++ b/middleman-core/lib/middleman-core/util.rb @@ -202,7 +202,7 @@ module Middleman # Useful for extensions implemented as Rack middleware. # @param response The response from #call # @return [String] The whole response as a string. - Contract IsA['Rack::BodyProxy'] => String + Contract Or[ArrayOf[String], IsA['Rack::BodyProxy']] => String def self.extract_response_text(response) # The rack spec states all response bodies must respond to each result = ''