From 8f861fef0693faccfdd759d1c1944bace0d00f7d Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 1 May 2012 00:37:00 -0700 Subject: [PATCH] Un-optional a parameter in hopes of fixing rbx build --- middleman-core/lib/middleman-core/application.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/application.rb b/middleman-core/lib/middleman-core/application.rb index f4f39df0..3a2f0097 100644 --- a/middleman-core/lib/middleman-core/application.rb +++ b/middleman-core/lib/middleman-core/application.rb @@ -518,8 +518,7 @@ module Middleman # @param [String] type Content type # @param [Hash] params # @return [void] - def content_type(res, type = nil, params={}) - return res['Content-Type'] unless type + def content_type(res, type, params={}) default = params.delete :default mime_type = mime_type(type) || default throw "Unknown media type: %p" % type if mime_type.nil?