diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-01-24 05:17:50 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-01-24 05:17:50 +0000 |
commit | 9b83ec394c830ce4f01fa693179c01826859b6e0 (patch) | |
tree | 3c1c63e10643d34b99d8595824acb9ad12b111f6 /src/couchdb | |
parent | 7e6f05f3e5946feb7628f13360852e647f297df3 (diff) |
Improve show/list API and send external responses without chunked as it's not needed.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@737304 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_httpd_external.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/couchdb/couch_httpd_external.erl b/src/couchdb/couch_httpd_external.erl index 692044ba..5f63ac0e 100644 --- a/src/couchdb/couch_httpd_external.erl +++ b/src/couchdb/couch_httpd_external.erl @@ -96,9 +96,7 @@ send_external_response(#httpd{mochi_req=MochiReq}, Response) -> headers = Headers } = parse_external_response(Response), Resp = MochiReq:respond({Code, - default_or_content_type(CType, Headers), chunked}), - Resp:write_chunk(Data), - Resp:write_chunk(""), + default_or_content_type(CType, Headers), Data}), {ok, Resp}. parse_external_response({Response}) -> |