diff --git a/middleman-core/lib/middleman-core/util.rb b/middleman-core/lib/middleman-core/util.rb index f2d1ac51..b98994d0 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 Or[ArrayOf[String], IsA['Rack::BodyProxy']] => String + Contract RespondTo[:each] => String def self.extract_response_text(response) # The rack spec states all response bodies must respond to each result = ''