Permalink
Browse files

OPTION should be OPTIONS. Also, added TRACE method.

  • Loading branch information...
1 parent 8912ae0 commit a1a34a66aeaffb8afb9b51f3501a84337b36bc37 @tyler tyler committed Sep 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http_router/route.rb
View
@@ -2,7 +2,7 @@
class HttpRouter
class Route
- VALID_HTTP_VERBS = %w{GET POST PUT DELETE HEAD OPTION}
+ VALID_HTTP_VERBS = %w{GET POST PUT DELETE HEAD OPTIONS TRACE}
attr_reader :default_values, :router, :match_partially, :other_hosts, :paths, :request_methods
attr_accessor :match_partially, :router, :host, :user_agent, :name, :ignore_trailing_slash,

0 comments on commit a1a34a6

Please sign in to comment.