mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
fix: return 204 instead of 404
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
This commit is contained in:
parent
10852d38e3
commit
0628eb62f3
2 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ class ImageExportPlugin extends ServerPlugin {
|
|||
|
||||
$response->setBody($file->getContent());
|
||||
} catch (NotFoundException $e) {
|
||||
$response->setStatus(404);
|
||||
$response->setStatus(\OCP\AppFramework\Http::STATUS_NO_CONTENT);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class ImageExportPluginTest extends TestCase {
|
|||
->willThrowException(new NotFoundException());
|
||||
$this->response->expects($this->once())
|
||||
->method('setStatus')
|
||||
->with(404);
|
||||
->with(\OCP\AppFramework\Http::STATUS_NO_CONTENT);
|
||||
}
|
||||
|
||||
$result = $this->plugin->httpGet($this->request, $this->response);
|
||||
|
|
|
|||
Loading…
Reference in a new issue