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

remove useless conditional

cookies are always stored as a string in the header hash, so it will not
need to be joined.
上级 14af1363
......@@ -381,8 +381,6 @@ def to_ary
end
def rack_response(status, header)
header[SET_COOKIE] = header[SET_COOKIE].join("\n") if header[SET_COOKIE].respond_to?(:join)
if NO_CONTENT_CODES.include?(@status)
header.delete CONTENT_TYPE
header.delete 'Content-Length'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册