DELETE request not working

#1
Hi everyone,

I'm using edge rails with REST support. My problem is when I want to delete a resource using DELETE, Litespeed doesn't even talk to the rails app and send me back a "302 found" response. I'm using the 2.2.5 standard release.

With Mongrel I hadn't this problem, so I think it's a Litespeed issue. Is there a solution?

Thanks.
 
Last edited:
#3
I'm just using curl for the moment:

curl -X DELETE "http://domain.com/resource/10.xml"

Code:
<html>
<head><title> 302 Found
</title></head>
<body><h1> 302 Found
</h1>
The document has been temporarily moved to <A HREF="%s">here</A>.<hr />
Powered By <a href='http://www.litespeedtech.com'>LiteSpeed Web Server</a><br />
<font face="Verdana, Arial, Helvetica" size=-1>Lite Speed Technologies is not responsible for administration and contents of this web site!</font></body></html>
I have this response even if the resource doesn't exist...

Thanks for your help.
 

mistwang

LiteSpeed Staff
#4
OK, this is fixed. that because of the 404 handler used for Rails requests. If you use rewrite rule to dispatch rails requests, it will not happen.

Thanks for the bug report.
 
#5
Do I need to install a new version or it was already fixed in 2.2.5? If yes, I don't understand what I need to do..
I tried to enable rewrite but it doesn't change anything.

Sorry, I'm new to Litespeed.

Thanks again for your help.
 
Top