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 ->
|
true ->
|
||||||
URI.parse(url)
|
URI.parse(url)
|
||||||
|> then(fn parsed ->
|
|> then(fn parsed ->
|
||||||
path =
|
path = encode_path(parsed.path, bypass_decode)
|
||||||
encode_path(parsed.path, bypass_decode)
|
|
||||||
|> maybe_apply_path_encoding_quirks()
|
|
||||||
|
|
||||||
query = encode_query(parsed.query)
|
query = encode_query(parsed.query)
|
||||||
|
|
||||||
|
|
@ -76,8 +74,6 @@ defmodule Pleroma.Utils.URIEncoding do
|
||||||
|> do_encode_query()
|
|> do_encode_query()
|
||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_apply_path_encoding_quirks(path), do: path
|
|
||||||
|
|
||||||
# Always uses www_form encoding
|
# Always uses www_form encoding
|
||||||
defp do_encode_query(enumerable) do
|
defp do_encode_query(enumerable) do
|
||||||
Enum.map_join(enumerable, "&", &maybe_apply_query_quirk(&1))
|
Enum.map_join(enumerable, "&", &maybe_apply_query_quirk(&1))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue