diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-03 19:46:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-03 19:46:18 +0000 |
commit | 411319abcbb1400669c9b9b01effc111934e7552 (patch) | |
tree | 4275b91e560bad78a04db10b0b833ea56f45e7c8 /lib | |
parent | 4f7dfa750666e90bc27d977bfb19d427bd2931c6 (diff) | |
download | ruby-411319abcbb1400669c9b9b01effc111934e7552.tar.gz ruby-411319abcbb1400669c9b9b01effc111934e7552.tar.xz ruby-411319abcbb1400669c9b9b01effc111934e7552.zip |
* lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method names
are symbols now. [ruby-core:24580]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/httpservlet/abstract.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/webrick/httpservlet/abstract.rb b/lib/webrick/httpservlet/abstract.rb index 2a0a4049f..f8bf14a33 100644 --- a/lib/webrick/httpservlet/abstract.rb +++ b/lib/webrick/httpservlet/abstract.rb @@ -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 |