summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--src/chttpd/src/chttpd_misc.erl4
2 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e345ea487..cd3a4437c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -279,7 +279,7 @@ without needing any other steps like setting git upstreams! :sparkles:
## Thanks
-Special thanks to [Hoodie][https://github.com/hoodiehq/hoodie] for the great
+Special thanks to [Hoodie](https://github.com/hoodiehq/hoodie) for the great
CONTRIBUTING.md template.
[1]: http://mail-archives.apache.org/mod_mbox/couchdb-user/
diff --git a/src/chttpd/src/chttpd_misc.erl b/src/chttpd/src/chttpd_misc.erl
index 7b417b442..39ffa2368 100644
--- a/src/chttpd/src/chttpd_misc.erl
+++ b/src/chttpd/src/chttpd_misc.erl
@@ -242,7 +242,9 @@ cancel_replication(PostBody, Ctx) ->
{error, badrpc};
Else ->
% Unclear what to do here -- pick the first error?
- hd(Else)
+ % Except try ignoring any {error, not_found} responses
+ % because we'll always get two of those
+ hd(Else -- [{error, not_found}])
end
end.