Project

General

Profile

Actions

Bug #3476

closed

un.rb: httpd: invalid option --http-version

Added by znz (Kazuhiro NISHIYAMA) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]
Backport:

Description

=begin
un.rb の httpd の help で --http-version というオプションがあると出ますが、
--HTTPVersion にしないと使えません。

% ruby-trunk -v
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]
% ruby-trunk -run -e help httpd
Run WEBrick HTTP server.

ruby -run -e httpd -- [OPTION] DocumentRoot

--bind-address=ADDR address to bind
--port=NUM listening port number
--max-clients=MAX max number of simultaneous clients
--temp-dir=DIR temporary directory
--do-not-reverse-lookup disable reverse lookup
--request-timeout=SECOND request timeout in seconds
--http-version=VERSION HTTP version
-v verbose

% ruby-trunk -run -e httpd -- --http-version=1.0 .
.../un.rb:52:in block in setup': invalid option: --http-version=1.0 (OptionParser::InvalidOption) from .../un.rb:38:in new'
from .../un.rb:38:in setup' from .../un.rb:302:in httpd'
from -e:1:in `'
%
=end

Actions

Also available in: Atom PDF

Like0
Like0