Remove "support" for path encoding quirks
Currently there isn't any known quirk that would be needed and this is just dead code that does nothing.
This commit is contained in:
parent
bcdd78fba5
commit
07ba3bb829
1 changed files with 1 additions and 5 deletions
|
|
@ -22,9 +22,7 @@ defmodule Pleroma.Utils.URIEncoding do
|
|||
true ->
|
||||
URI.parse(url)
|
||||
|> then(fn parsed ->
|
||||
path =
|
||||
encode_path(parsed.path, bypass_decode)
|
||||
|> maybe_apply_path_encoding_quirks()
|
||||
path = encode_path(parsed.path, bypass_decode)
|
||||
|
||||
query = encode_query(parsed.query)
|
||||
|
||||
|
|
@ -76,8 +74,6 @@ defmodule Pleroma.Utils.URIEncoding do
|
|||
|> do_encode_query()
|
||||
end
|
||||
|
||||
defp maybe_apply_path_encoding_quirks(path), do: path
|
||||
|
||||
# Always uses www_form encoding
|
||||
defp do_encode_query(enumerable) do
|
||||
Enum.map_join(enumerable, "&", &maybe_apply_query_quirk(&1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue