* lib/webrick/accesslog.rb (WEBrick::AccessLog#format): fixed typo.
* lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status#initialize): accept 0 or more arguments. [ruby-dev:40021] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
19c6e24021
commit
6dcd551a4b
@ -1,3 +1,10 @@
|
|||||||
|
Mon Jan 11 13:30:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/webrick/accesslog.rb (WEBrick::AccessLog#format): fixed typo.
|
||||||
|
|
||||||
|
* lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status#initialize):
|
||||||
|
accept 0 or more arguments. [ruby-dev:40021]
|
||||||
|
|
||||||
Mon Jan 11 12:47:58 2010 Akinori MUSHA <knu@iDaemons.org>
|
Mon Jan 11 12:47:58 2010 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* hash.c (ruby_setenv): ENV.[]= should raise an error if setenv(3)
|
* hash.c (ruby_setenv): ENV.[]= should raise an error if setenv(3)
|
||||||
|
@ -53,7 +53,7 @@ module WEBrick
|
|||||||
when ?e, ?i, ?n, ?o
|
when ?e, ?i, ?n, ?o
|
||||||
raise AccessLogError,
|
raise AccessLogError,
|
||||||
"parameter is required for \"#{spec}\"" unless param
|
"parameter is required for \"#{spec}\"" unless param
|
||||||
param = params[spec][param] ? escape(param) : "-"
|
(param = params[spec][param]) ? escape(param) : "-"
|
||||||
when ?t
|
when ?t
|
||||||
params[spec].strftime(param || CLF_TIME_FORMAT)
|
params[spec].strftime(param || CLF_TIME_FORMAT)
|
||||||
when ?%
|
when ?%
|
||||||
|
@ -13,8 +13,9 @@ module WEBrick
|
|||||||
module HTTPStatus
|
module HTTPStatus
|
||||||
|
|
||||||
class Status < StandardError
|
class Status < StandardError
|
||||||
def initialize(message, *rest)
|
def initialize(*args)
|
||||||
super(AccessLog.escape(message), *rest)
|
args[0] = AccessLog.escape(args[0]) unless args.empty?
|
||||||
|
super(*args)
|
||||||
end
|
end
|
||||||
class << self
|
class << self
|
||||||
attr_reader :code, :reason_phrase
|
attr_reader :code, :reason_phrase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user