respect content-type header in finger request

This commit is contained in:
Alexander Strizhakov 2021-03-18 13:49:03 +03:00
commit d7e51206a2
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 141 additions and 69 deletions

View file

@ -31,7 +31,7 @@ defmodule Pleroma.Web.XML do
|> :binary.bin_to_list()
|> :xmerl_scan.string(quiet: true)
doc
{:ok, doc}
rescue
_e ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")