diff options
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/app/exec_cgi.rb | 2 | ||||
-rw-r--r-- | lib/unicorn/socket_helper.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/app/exec_cgi.rb b/lib/unicorn/app/exec_cgi.rb index 2262e4c..ef2a18e 100644 --- a/lib/unicorn/app/exec_cgi.rb +++ b/lib/unicorn/app/exec_cgi.rb @@ -36,7 +36,7 @@ module Unicorn::App self.args = args first = args[0] or raise ArgumentError, "need path to executable" - first[0..0] == "/" or args[0] = ::File.expand_path(first) + first[0] == ?/ or args[0] = ::File.expand_path(first) File.executable?(args[0]) or raise ArgumentError, "#{args[0]} is not executable" end diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb index e287955..f792562 100644 --- a/lib/unicorn/socket_helper.rb +++ b/lib/unicorn/socket_helper.rb @@ -76,7 +76,7 @@ module Unicorn def bind_listen(address = '0.0.0.0:8080', opt = {}) return address unless String === address - sock = if address[0..0] == "/" + sock = if address[0] == ?/ if File.exist?(address) if File.socket?(address) if self.respond_to?(:logger) |