Add management of webmentions

This commit is contained in:
2024-01-26 11:43:19 +11:00
parent 9dad3d88ce
commit fa031d880b
10 changed files with 110 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ end
require "adamantium/middleware/header_fix"
use Adamantium::Middleware::HeaderFix do |headers, env|
unless headers["Content-Type"].include? "xml"
unless headers["Content-Type"]&.include? "xml"
headers["Content-Type"] = "text/html; charset=utf-8"
end
end