Bug using PUT and DELETE

Sep 14, 2007 at 5:09 PM
Edited Sep 14, 2007 at 8:43 PM
I've been banging my head at this for 2 days now. I have a rewrite rule that converts
http://localhost/cutomers/1.xml to http://localhost/customers/1.rails?format=xml

So....
curl -X PUT -i http://localhost/customers/1.xml gives me an HTTP 500 "The parameter is incorrect"
but these all work

curl -X put -i http://localhost/customers/1.xml
curl -X Put -i http://localhost/customers/1.xml
curl -X pUT -i http://localhost/customers/1.xml

I also experience the same behavior with DELETE, but not GET and POST

I've debugged through the code an can't seem to find anywhere that it acts differently, however if I don't do any rewriting it works fine:
curl -X PUT -i http://localhost/customers/1.rails?format=xml