Diff

mod_http_avatar/mod_http_avatar.lua @ 5856:75dee6127829

Merge upstream
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Tue, 06 Feb 2024 18:32:01 +0700
parent 5743:0f103a6e9ba4
line wrap: on
line diff
--- a/mod_http_avatar/mod_http_avatar.lua	Tue Aug 29 23:51:17 2023 +0700
+++ b/mod_http_avatar/mod_http_avatar.lua	Tue Feb 06 18:32:01 2024 +0700
@@ -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