diff options
-rw-r--r-- | src/chttpd_db.erl | 2 | ||||
-rw-r--r-- | src/chttpd_view.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl index dc1f6df3..1d558a19 100644 --- a/src/chttpd_db.erl +++ b/src/chttpd_db.erl @@ -414,7 +414,7 @@ all_docs_callback({row, Row}, {Prepend, Resp}) -> all_docs_callback(complete, {_, Resp}) -> send_chunk(Resp, "\r\n]}"), end_json_response(Resp); -all_docs_callback({error, Reason}, Resp) -> +all_docs_callback({error, Reason}, {_, Resp}) -> chttpd:send_chunked_error(Resp, {error, Reason}). db_doc_req(#httpd{method='DELETE'}=Req, Db, DocId) -> diff --git a/src/chttpd_view.erl b/src/chttpd_view.erl index f49e232d..8d071cac 100644 --- a/src/chttpd_view.erl +++ b/src/chttpd_view.erl @@ -65,7 +65,7 @@ view_callback(complete, {_, Resp}) -> send_chunk(Resp, "\r\n]}"), end_json_response(Resp), {ok, Resp}; -view_callback({error, Reason}, Resp) -> +view_callback({error, Reason}, {_, Resp}) -> chttpd:send_chunked_error(Resp, {error, Reason}). extract_view_type(_ViewName, [], _IsReduce) -> |