Skip to content

Commit

Permalink
XHTML should also win over PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
bodewig committed Aug 25, 2024
1 parent d284d71 commit ab9c386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/openidc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ local function request_prefers_png_over_html()
end)

for _, a in ipairs(accepted) do
if a.media_range:find("text/html") then
if a.media_range:find("text/html") or a.media_range:find("application/xhtml%+xml") then
return false
end
if a.media_range:find("image/png") then
Expand Down

0 comments on commit ab9c386

Please sign in to comment.