Permalink
Browse files

Retain match-all etest_http:make_query

  • Loading branch information...
1 parent 62423f1 commit 1d298440df9ffeff49a0156567e6063fcf59fc30 Johannes Huning committed Feb 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/etest_http.erl
View
@@ -53,10 +53,10 @@ make_query({Key, Value}) when is_integer(Value) ->
make_query({Key, Value}) when is_atom(Key) ->
make_query({atom_to_list(Key), Value});
-% Key & value lists
-make_query({Key, Value}) when is_list(Key) andalso is_list(Value) ->
+make_query({Key, Value}) ->
[url_encode(Key), "=", url_encode(Value)].
+
url_encode(Value) when is_list(Value) ->
http_uri:encode(Value);

0 comments on commit 1d29844

Please sign in to comment.