diff options
author | Eric Wong <e@80x24.org> | 2016-06-06 05:00:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-06 05:00:11 +0000 |
commit | 133523706715b6e95d2bf410886560f21a23b1e8 (patch) | |
tree | 64784f3e72c166fe05f5fe43a544fccaf8688191 /lib/yahns/proxy_http_response.rb | |
parent | 9f00d864e25e35ae6cb223b66a434965b14dbdca (diff) | |
download | yahns-133523706715b6e95d2bf410886560f21a23b1e8.tar.gz |
We can retrieve it when we actually need to create the temporary file. This saves an ivar slot and method dispatch parameters. This patch is nice, unfortunately the patch which follows is not :P
Diffstat (limited to 'lib/yahns/proxy_http_response.rb')
-rw-r--r-- | lib/yahns/proxy_http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb index 61f1539..8de5b4f 100644 --- a/lib/yahns/proxy_http_response.rb +++ b/lib/yahns/proxy_http_response.rb @@ -21,7 +21,7 @@ module Yahns::HttpResponse # :nodoc: def wbuf_alloc(req_res) if req_res.proxy_pass.proxy_buffering - Yahns::Wbuf.new(nil, req_res.alive, self.class.output_buffer_tmpdir) + Yahns::Wbuf.new(nil, req_res.alive) else Yahns::WbufLite.new(req_res) end |