提交 ddb0d4be 编写于 作者: C Carlos Antonio da Silva

Realign assignments

上级 0b859dfe
......@@ -92,13 +92,13 @@ def add_trailing_slash(path)
def build_host_url(host, port, protocol, options, path)
if match = host.match(HOST_REGEXP)
protocol ||= match[1] unless protocol == false
host = match[2]
port = match[3] unless options.key? :port
protocol ||= match[1] unless protocol == false
host = match[2]
port = match[3] unless options.key? :port
end
protocol = normalize_protocol protocol
host = normalize_host(host, options)
protocol = normalize_protocol protocol
host = normalize_host(host, options)
result = protocol.dup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册