mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method names
are symbols now. [ruby-core:24580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb03cb8275
commit
c0a09d9594
3 changed files with 8 additions and 4 deletions
|
@ -48,8 +48,7 @@ module WEBrick
|
|||
end
|
||||
|
||||
def do_OPTIONS(req, res)
|
||||
m = self.methods.grep(/^do_[A-Z]+$/)
|
||||
m.collect!{|i| i.sub(/do_/, "") }
|
||||
m = self.methods.grep(/\Ado_([A-Z]+)\z/) {$1}
|
||||
m.sort!
|
||||
res["allow"] = m.join(",")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue