diff options
author | Tony Sun <tony.sun427@gmail.com> | 2019-02-13 11:50:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 11:50:24 -0800 |
commit | 228ae8adc97d7924b64b5723d0e07e0248e04c73 (patch) | |
tree | c20960b9ab41033f39529daa062b77182a1d9fc3 | |
parent | 57ea52213cd750ce6bb0233e52c8f1117e18a608 (diff) | |
download | couchdb-228ae8adc97d7924b64b5723d0e07e0248e04c73.tar.gz |
fix function_clause (#42)
JsonBody was already a tuple list so putting in brackets made it
a nested list which function claused on {K,V}. This fixes that
-rw-r--r-- | src/dreyfus_httpd.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dreyfus_httpd.erl b/src/dreyfus_httpd.erl index 7b9d9ef03..b5c1f2736 100644 --- a/src/dreyfus_httpd.erl +++ b/src/dreyfus_httpd.erl @@ -196,7 +196,7 @@ parse_index_params(#httpd{method='POST'}=Req, Db) -> end, IndexParams = lists:flatmap(fun({K, V}) -> parse_json_index_param(K, V) - end, QSEntry ++ [JsonBody]), + end, QSEntry ++ JsonBody), ensure_unique_partition(IndexParams), parse_index_params(IndexParams, Db); parse_index_params(IndexParams, Db) -> |