mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
3 changed files with 12 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* hash.c (ruby_setenv): ENV.[]= should raise an error if setenv(3)
|
||||
|
|
|
@ -53,7 +53,7 @@ module WEBrick
|
|||
when ?e, ?i, ?n, ?o
|
||||
raise AccessLogError,
|
||||
"parameter is required for \"#{spec}\"" unless param
|
||||
param = params[spec][param] ? escape(param) : "-"
|
||||
(param = params[spec][param]) ? escape(param) : "-"
|
||||
when ?t
|
||||
params[spec].strftime(param || CLF_TIME_FORMAT)
|
||||
when ?%
|
||||
|
|
|
@ -12,9 +12,10 @@ module WEBrick
|
|||
|
||||
module HTTPStatus
|
||||
|
||||
class Status < StandardError
|
||||
def initialize(message, *rest)
|
||||
super(AccessLog.escape(message), *rest)
|
||||
class Status < StandardError
|
||||
def initialize(*args)
|
||||
args[0] = AccessLog.escape(args[0]) unless args.empty?
|
||||
super(*args)
|
||||
end
|
||||
class << self
|
||||
attr_reader :code, :reason_phrase
|
||||
|
|
Loading…
Add table
Reference in a new issue