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

use `set_header` rather than []=

This allows us to avoid calling `env_name` twice.
上级 1fbf5ad7
......@@ -82,7 +82,7 @@ def merge(headers_or_env)
# <tt>headers_or_env</tt>.
def merge!(headers_or_env)
headers_or_env.each do |key, value|
self[env_name(key)] = value
@req.set_header env_name(key), value
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册