mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
Fix infinite redirect after PUT by changing requestMethod through responsecode
This commit is contained in:
parent
73c61e7d4c
commit
8a6ee8b434
@ -489,7 +489,7 @@ class RestfulServer extends Controller
|
||||
return $obj;
|
||||
}
|
||||
|
||||
$this->getResponse()->setStatusCode(200); // Success
|
||||
$this->getResponse()->setStatusCode(303); // Success
|
||||
$this->getResponse()->addHeader('Content-Type', $responseFormatter->getOutputContentType());
|
||||
|
||||
// Append the default extension for the output format to the Location header
|
||||
|
Loading…
Reference in New Issue
Block a user