     case decode_next_query_pair(query) do
       nil ->
         dict
+
       {{key, value}, rest} ->
         # Avoid warnings about Dict being deprecated
         dict_module = Dict

    unpercent(string, "", true)
  catch
    :malformed_uri ->
      raise ArgumentError, "malformed URI #{inspect string}"
  end

  defp unpercent(<<?+, tail::binary>>, acc, spaces = true) do


  # TODO: Remove on 2.0
  def decode_query(query, dict) when is_binary(query) do
    IO.warn("URI.decode_query/2 is deprecated, please use URI.decode_query/1")
    decode_query_into_dict(query, dict)
  end

