This project is archived and is in readonly mode.

#5895 ✓resolved

Allow mounting of rack apps that deal with HTTP extensions

Reported by clyfe | October 30th, 2010 @ 04:17 PM | in 3.0.2

I have a rack app that handles webdav request. I cannot mount it from inside rails like this;

HelloWebdavApp::Application.routes.draw do |map|
  match '/webdav', :to => WebdavApp

because rails validates HTTP verbs (GET POST PUT ..), and webdav uses HTTP extensions like PROPFIND that do not validate, throwing the following exception:

ActionController::UnknownHttpMethod (PROPFIND, accepted HTTP methods are get, head, put, post, delete, and options)

I see 2 possible fixes:

Either allow rack mounting semantics to say "mount this but above HelloWebdavApp.routes" either change the validation code to allow http extensions verbs.

More background here:

Related ticket:

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by