couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject svn commit: r921707 - /couchdb/trunk/src/couchdb/couch_httpd_db.erl
Date Thu, 11 Mar 2010 06:57:05 GMT
Author: benoitc
Date: Thu Mar 11 06:57:05 2010
New Revision: 921707

URL: http://svn.apache.org/viewvc?rev=921707&view=rev
Log:
make sure we pass etags in header when we send doc

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_db.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_db.erl?rev=921707&r1=921706&r2=921707&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_db.erl Thu Mar 11 06:57:05 2010
@@ -736,7 +736,7 @@ send_doc_efficiently(Req, #doc{atts=Atts
         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
                     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.
 
 



Mime
View raw message