Un-optional a parameter in hopes of fixing rbx build
This commit is contained in:
parent
380dac270d
commit
8f861fef06
|
@ -518,8 +518,7 @@ module Middleman
|
||||||
# @param [String] type Content type
|
# @param [String] type Content type
|
||||||
# @param [Hash] params
|
# @param [Hash] params
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def content_type(res, type = nil, params={})
|
def content_type(res, type, params={})
|
||||||
return res['Content-Type'] unless type
|
|
||||||
default = params.delete :default
|
default = params.delete :default
|
||||||
mime_type = mime_type(type) || default
|
mime_type = mime_type(type) || default
|
||||||
throw "Unknown media type: %p" % type if mime_type.nil?
|
throw "Unknown media type: %p" % type if mime_type.nil?
|
||||||
|
|
Loading…
Reference in a new issue