diff options
author | Eric Wong <e@80x24.org> | 2015-02-06 23:12:14 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-02-10 01:56:25 +0000 |
commit | ad6b17cec36a3be9a87fd20590ffe7e07a970965 (patch) | |
tree | 7daa4bba4a377b973616b997976f3830e2b2935f /extras | |
parent | bfa6e5de4ff999af0e9bf1ca9b604249c879e39a (diff) | |
download | yahns-ad6b17cec36a3be9a87fd20590ffe7e07a970965.tar.gz |
This saves over 400 bytes of memory in a cold code path.
Diffstat (limited to 'extras')
-rw-r--r-- | extras/proxy_pass.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/proxy_pass.rb b/extras/proxy_pass.rb index e7127d3..b1697db 100644 --- a/extras/proxy_pass.rb +++ b/extras/proxy_pass.rb @@ -117,7 +117,7 @@ class ProxyPass # :nodoc: case dest when %r{\Ahttp://([^/]+)(/.*)\z} path = $2 - host, port = $1.split(/:/) + host, port = $1.split(':') @sockaddr = Socket.sockaddr_in(port || 80, host) # methods from Rack::Request we want: |