Fix infinite redirect after PUT by changing requestMethod through responsecode

This commit is contained in:
Andreas Piening 2018-05-07 12:43:30 +12:00
parent 73c61e7d4c
commit 8a6ee8b434

View File

@ -489,7 +489,7 @@ class RestfulServer extends Controller
return $obj; return $obj;
} }
$this->getResponse()->setStatusCode(200); // Success $this->getResponse()->setStatusCode(303); // Success
$this->getResponse()->addHeader('Content-Type', $responseFormatter->getOutputContentType()); $this->getResponse()->addHeader('Content-Type', $responseFormatter->getOutputContentType());
// Append the default extension for the output format to the Location header // Append the default extension for the output format to the Location header