Skip to content

Commit

Permalink
Added JPEG XL MIME type
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
  • Loading branch information
1div0 committed Oct 26, 2023
1 parent aad4e79 commit fec8813
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dav/lib/Avatars/AvatarNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ public function get() {
public function getContentType() {
if ($this->ext === 'png') {
return 'image/png';
} elseif ($this->ext === 'jxl') {
return 'image/jxl';
}
return 'image/jpeg';
return 'image/jpeg';
}

public function getETag() {
Expand Down

0 comments on commit fec8813

Please sign in to comment.