提交 c86ec82c 编写于 作者: J Jeremy Kemper

Wrap string body in an array

上级 b46c9071
......@@ -102,7 +102,7 @@ def status_code(exception)
end
def render(status, body)
[status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, body]
[status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, [body]]
end
def public_path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册