couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to cb0f20e
Date Tue, 20 Dec 2016 13:25:13 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 7bfd253c6 -> cb0f20ea0


Fix missing ampersand in rewritten queries


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/cb0f20ea
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/cb0f20ea
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/cb0f20ea

Branch: refs/heads/master
Commit: cb0f20ea0898cd24ff8ac0617b326874088d9157
Parents: 7bfd253
Author: Fabian Ising <f.ising@gmail.com>
Authored: Thu Dec 8 15:58:32 2016 +0100
Committer: Fabian Ising <f.ising@gmail.com>
Committed: Mon Dec 12 12:28:08 2016 +0100

----------------------------------------------------------------------
 src/chttpd_rewrite.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/cb0f20ea/src/chttpd_rewrite.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_rewrite.erl b/src/chttpd_rewrite.erl
index 7b72884..039390e 100644
--- a/src/chttpd_rewrite.erl
+++ b/src/chttpd_rewrite.erl
@@ -155,7 +155,7 @@ rewrite_query_params(#httpd{}=Req, {Props}) ->
         {V} -> V
     end,
     RewriteQSEsc = [{chttpd:quote(K), chttpd:quote(V)} || {K, V} <- RewriteQS],
-    iolist_to_binary([[K, "=", V] || {K, V} <- RewriteQSEsc]).
+    iolist_to_binary(string:join([[K, "=", V] || {K, V} <- RewriteQSEsc], "&")).
 
 rewrite_headers(#httpd{mochi_req=MochiReq}, {Props}) ->
     case couch_util:get_value(<<"headers">>, Props) of


Mime
View raw message