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

remove useless conditional

we always have a response object, so there is no reason to test it
上级 a50d55a7
......@@ -45,7 +45,7 @@ def head(status, options = {})
if include_content?(self.response_code)
self.content_type = content_type || (Mime[formats.first] if formats)
self.response.charset = false if self.response
self.response.charset = false
end
true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册