提交 fb9a39f4 编写于 作者: A Aaron Patterson

swap upcase and to_sym

上级 e4ba720c
......@@ -229,7 +229,7 @@ def initialize(mimes, variant = nil)
@responses = {}
@variant = variant
mimes.each { |mime| @responses[Mime::Type[mime.to_sym.upcase]] = nil }
mimes.each { |mime| @responses[Mime::Type[mime.upcase.to_sym]] = nil }
end
def any(*args, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册