Skip to content

Commit b861c2a

Browse files
authored
Merge pull request #279 from rinverardi/attachments1
Allow empty inline attachments
2 parents a1022a5 + 6879331 commit b861c2a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

org.ektorp/src/main/java/org/ektorp/support/CouchDbDocument.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ protected void removeAttachment(String id) {
117117

118118
protected void addInlineAttachment(Attachment a) {
119119
Assert.notNull(a, "attachment may not be null");
120-
Assert.hasText(a.getDataBase64(), "attachment must have data base64-encoded");
121120
if (attachments == null) {
122121
attachments = new HashMap<String, Attachment>();
123122
}

0 commit comments

Comments
 (0)