diff options
-rw-r--r-- | share/www/script/jquery.couch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index 99ad1842..d3d73671 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -164,7 +164,7 @@ return false; } else { doc._attachments = doc._attachments || {}; - doc._attachments["rev-"+doc._rev] = { + doc._attachments["rev-"+doc._rev.split("-")[0]] = { content_type :"application/json", data : Base64.encode(rawDocs[doc._id].raw) } |