Changeset

5743:0f103a6e9ba4

mod_http_avatar: Fix displaying the fallback on Firefox
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 16:25:52 +0100
parents 5742:18bae78282a6
children 5744:40558231ab7d
files mod_http_avatar/mod_http_avatar.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_avatar/mod_http_avatar.lua	Thu Nov 16 16:16:55 2023 +0100
+++ b/mod_http_avatar/mod_http_avatar.lua	Thu Nov 16 16:25:52 2023 +0100
@@ -29,7 +29,8 @@
 		end
 	end
 	if not photo_type or not binval then
-		response.status_code = 404;
+		-- FIXME: should be a 404, but Firefox won’t display it in that case…
+		--response.status_code = 404;
 		response.headers.content_type = "image/svg+xml";
 		return default_avatar;
 	end