mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
[PR #1220] [MERGED] Return 404 instead of fallback icon #2886
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/1220
Author: @jameshurst
Created: 11/10/2020
Status: ✅ Merged
Merged: 11/14/2020
Merged by: @dani-garcia
Base:
master← Head:master📝 Commits (2)
ed70b07Return 404 instead of fallback icon7712331Fix for negcached icons📊 Changes
2 files changed (+16 additions, -18 deletions)
View changed files
📝
src/api/icons.rs(+16 -18)➖
src/static/fallback-icon.png(+0 -0)📄 Description
Returning a 404 not found error instead of the fallback icon allows clients to use their own icon instead (which may be higher quality than the fallback icon). This behaviour matches that of the official icons server as well (https://github.com/bitwarden/server/blob/master/src/Icons/Controllers/IconsController.cs#L89-L93).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.