提交 7fa61b15 编写于 作者: Y yui-knk

Use `#set_content_type` instead of `#set_header`

By this commit, `#set_header` is called only via
`#set_content_type`.  This commit makes the role of
`#charset=` more clear.
上级 58f10a31
......@@ -259,7 +259,7 @@ def sending_file=(v)
def charset=(charset)
header_info = parsed_content_type_header
if false == charset
set_header CONTENT_TYPE, header_info.mime_type
set_content_type header_info.mime_type, nil
else
content_type = header_info.mime_type
set_content_type content_type, charset || self.class.default_charset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册