Permalink
Browse files

add LINK and UNLINK methods

  • Loading branch information...
1 parent 7c0b9a2 commit bd8c10485d58710e99df384310a2b0fdcdb91ed9 @jamiehodge jamiehodge committed Jun 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/methodoverride.rb
@@ -1,6 +1,6 @@
module Rack
class MethodOverride
- HTTP_METHODS = %w(GET HEAD PUT POST DELETE OPTIONS PATCH)
+ HTTP_METHODS = %w(GET HEAD PUT POST DELETE OPTIONS PATCH LINK UNLINK)
METHOD_OVERRIDE_PARAM_KEY = "_method".freeze
HTTP_METHOD_OVERRIDE_HEADER = "HTTP_X_HTTP_METHOD_OVERRIDE".freeze

0 comments on commit bd8c104

Please sign in to comment.