From db4cb8443db428afc59ad1764e575e3d2d1bd856 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Tue, 20 Jan 2015 10:19:52 -0800 Subject: [PATCH] Handle spaces in the path properly. Fixes #622 --- lib/puma/binder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/binder.rb b/lib/puma/binder.rb index 3b366720..5931fe2e 100644 --- a/lib/puma/binder.rb +++ b/lib/puma/binder.rb @@ -98,7 +98,7 @@ module Puma @listeners << [str, io] when "unix" - path = "#{uri.host}#{uri.path}" + path = URI.unescape "#{uri.host}#{uri.path}" if fd = @inherited_fds.delete(str) logger.log "* Inherited #{str}"