about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/yahns/proxy_pass.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb
index 1b8eed7..d02bb40 100644
--- a/lib/yahns/proxy_pass.rb
+++ b/lib/yahns/proxy_pass.rb
@@ -28,10 +28,10 @@ class Yahns::ProxyPass # :nodoc:
     end
 
     def yahns_step # yahns event loop entry point
+      c = @yahns_client
       case req = @rrstate
       when Kcar::Parser # reading response...
         buf = Thread.current[:yahns_rbuf]
-        c = @yahns_client
 
         case resbuf = @resbuf # where are we at the response?
         when nil # common case, catch the response header in a single read