diff options
author | Jan Lehnardt <jan@apache.org> | 2008-07-17 18:52:46 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2008-07-17 18:52:46 +0000 |
commit | 48bed8e9d4d898708df8ebcb76c3db3ce64e1a2d (patch) | |
tree | 47e7d92dab53e12f7d3d847534d534e1cb1e7ec0 /src/couchdb | |
parent | 724d837ea4e009e5f3867d2e89f91b9e95ca75a1 (diff) |
Allow for empty attachments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@677682 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 05b584a5..8d671ea2 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -367,7 +367,7 @@ doc_flush_binaries(Doc, Fd) -> end, {{0,0}, 0}), {Fd, NewStreamPointer, Len}; - Bin when is_binary(Bin), size(Bin) > 0 -> + Bin when is_binary(Bin) -> {ok, StreamPointer} = couch_stream:write(OutputStream, Bin), {Fd, StreamPointer, size(Bin)} end, |