Skip to content

Commit ab9c386

Browse files
committed
XHTML should also win over PNG
1 parent d284d71 commit ab9c386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openidc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ local function request_prefers_png_over_html()
13021302
end)
13031303

13041304
for _, a in ipairs(accepted) do
1305-
if a.media_range:find("text/html") then
1305+
if a.media_range:find("text/html") or a.media_range:find("application/xhtml%+xml") then
13061306
return false
13071307
end
13081308
if a.media_range:find("image/png") then

0 commit comments

Comments
 (0)