This saves over 400 bytes of memory in a cold code path.
---
 extras/proxy_pass.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
EW


Reply via email to