diff options
author | SebastianKrupinski <krupinskis05@gmail.com> | 2024-12-12 23:06:01 -0500 |
---|---|---|
committer | SebastianKrupinski <krupinskis05@gmail.com> | 2024-12-13 11:47:18 -0500 |
commit | 0628eb62f3724bf84f5506f1df5e1a32f76754a4 (patch) | |
tree | 130bdd17661f45ba185ac89a997bcaa54dde4391 /apps/dav/lib | |
parent | 10852d38e345eab68035a2442f3a76b5c5e7bf1a (diff) | |
download | nextcloud-server-0628eb62f3724bf84f5506f1df5e1a32f76754a4.tar.gz nextcloud-server-0628eb62f3724bf84f5506f1df5e1a32f76754a4.zip |
fix: return 204 instead of 404fix/issue-3021-return-no-content-instead-of-error
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CardDAV/ImageExportPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/ImageExportPlugin.php b/apps/dav/lib/CardDAV/ImageExportPlugin.php index e9d390d0849..8a950202c08 100644 --- a/apps/dav/lib/CardDAV/ImageExportPlugin.php +++ b/apps/dav/lib/CardDAV/ImageExportPlugin.php @@ -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; |