From 9ad151e4aa6e3120f3fb53f5e82d35ba57e45bb6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 24 Mar 2017 04:45:13 +0000 Subject: proxy_pass: comment explaining what rack.hijack calls "call" is a generic name and may not obvious to somebody new to the code. --- lib/yahns/proxy_pass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/yahns/proxy_pass.rb') diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index 0ada4a6..2a37773 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -57,7 +57,7 @@ class Yahns::ProxyPass # :nodoc: def call(env) # 3-way handshake for TCP backends while we generate the request header rr = Yahns::ReqRes.start(@sockaddr) - c = env['rack.hijack'].call + c = env['rack.hijack'].call # Yahns::HttpClient#call req = Rack::Request.new(env) req = @path.gsub(/\$(\w+)/) { req.__send__($1) } -- cgit v1.2.3-24-ge0c7