config: add application/xml mimetype support.
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 18 Jun 2018 04:57:59 +0000 (04:57 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 18 Jun 2018 05:41:04 +0000 (05:41 +0000)
application/xml is the older xml mimetype.  some legacy scripts make use of it,
as well as common use for debugging with curl and other tools.  so it makes sense
to have it alongside text/xml.

config/config.exs

index 5e57af87b4927a8549e3723435590b59c8aa29cb..6ff7b30d066178348a436890b08dac2cd6908088 100644 (file)
@@ -26,6 +26,7 @@ config :logger, :console,
   metadata: [:request_id]
 
 config :mime, :types, %{
+  "application/xml" => ["xml"],
   "application/xrd+xml" => ["xrd+xml"],
   "application/activity+json" => ["activity+json"],
   "application/ld+json" => ["activity+json"]