Skip to content

Commit 214d0cd

Browse files
committed
whitespace
1 parent 0c1d08f commit 214d0cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/rack/reverse_proxy.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ def call(env)
1515
matcher, url = get_matcher_and_url rackreq.fullpath
1616
return @app.call(env) if matcher.nil?
1717

18-
uri = get_uri(url, matcher, rackreq.fullpath)
18+
uri = get_uri(url, matcher, rackreq.fullpath)
1919
headers = Rack::Utils::HeaderHash.new
2020
env.each { |key, value|
2121
if key =~ /HTTP_(.*)/
2222
headers[$1] = value
2323
end
2424
}
25-
headers['HOST'] = uri.host if @opts[:preserve_host]
26-
27-
session = Net::HTTP.new(uri.host, uri.port)
28-
session.use_ssl = (uri.scheme == 'https')
29-
session.verify_mode = OpenSSL::SSL::VERIFY_NONE
30-
session.start { |http|
25+
headers['HOST'] = uri.host if @opts[:preserve_host]
26+
27+
session = Net::HTTP.new(uri.host, uri.port)
28+
session.use_ssl = (uri.scheme == 'https')
29+
session.verify_mode = OpenSSL::SSL::VERIFY_NONE
30+
session.start { |http|
3131
m = rackreq.request_method
3232
case m
3333
when "GET", "HEAD", "DELETE", "OPTIONS", "TRACE"
@@ -52,7 +52,7 @@ def call(env)
5252
[res.code, create_response_headers(res), [body]]
5353
}
5454
end
55-
55+
5656
private
5757

5858
def get_matcher_and_url path

0 commit comments

Comments
 (0)