Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Disregard a 404 coming from Couch when doing a HEAD in copy_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 5, 2013
1 parent 2788756 commit e56ccb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano.js
Expand Up @@ -686,7 +686,7 @@ module.exports = exports = nano = function database_module(cfg) {
};
if(opts.overwrite) {
return head_doc(doc_dest, function (e,b,h) {
if (e) {
if (e && e.status_code !== 404) {
return callback(e);
}
if (h && typeof h.etag === 'string') {
Expand Down

0 comments on commit e56ccb6

Please sign in to comment.