respect content-type header in finger request
This commit is contained in:
parent
a9bc652ab9
commit
d7e51206a2
5 changed files with 141 additions and 69 deletions
|
|
@ -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)}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue