diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-16 07:58:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-16 07:58:01 +0000 |
commit | 87b350e00fe86950cb42d470ecfa6a047fa8df12 (patch) | |
tree | 7a586957523e1252295473ac295571deaff5a237 /lib | |
parent | 8966424e9d3cc4f6847945820e830b4f253762b7 (diff) | |
download | ruby-87b350e00fe86950cb42d470ecfa6a047fa8df12.tar.gz ruby-87b350e00fe86950cb42d470ecfa6a047fa8df12.tar.xz ruby-87b350e00fe86950cb42d470ecfa6a047fa8df12.zip |
* lib/un.rb (httpd): try to convert port number to integer.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/un.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -304,6 +304,7 @@ def httpd |argv, options| require 'webrick' opt = options[:RequestTimeout] and options[:RequestTimeout] = opt.to_i + opt = options[:Port] and (options[:Port] = Integer(opt)) rescue nil unless argv.empty? options[:DocumentRoot] = argv.shift end |