summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Chesneau <benoitc@apache.org>2010-03-11 06:57:05 +0000
committerBenoit Chesneau <benoitc@apache.org>2010-03-11 06:57:05 +0000
commit1e62826522a322119c4ce84113283434dae02ea7 (patch)
treea2e37ea6c6c54590639d7a930526f96a10761f25 /src
parent68ac2db910581555b9f3063bba2421c8fc2b391b (diff)
make sure we pass etags in header when we send doc
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@921707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_db.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index d7fe3310..b473ff6c 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -736,7 +736,7 @@ send_doc_efficiently(Req, #doc{atts=Atts}=Doc, Headers, Options) ->
end,
case lists:member("multipart/related", AcceptedTypes) of
false ->
- send_json(Req, 200, [], couch_doc:to_json_obj(Doc, Options));
+ send_json(Req, 200, Headers, couch_doc:to_json_obj(Doc, Options));
true ->
Boundary = couch_uuids:random(),
JsonBytes = ?JSON_ENCODE(couch_doc:to_json_obj(Doc, [follows|Options])),
@@ -751,7 +751,7 @@ send_doc_efficiently(Req, #doc{atts=Atts}=Doc, Headers, Options) ->
fun(Data) -> couch_httpd:send(Resp, Data) end, false)
end;
false ->
- send_json(Req, 200, [], couch_doc:to_json_obj(Doc, Options))
+ send_json(Req, 200, Headers, couch_doc:to_json_obj(Doc, Options))
end.