summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriilyak <iilyak@users.noreply.github.com>2019-10-28 05:11:55 -0700
committerGitHub <noreply@github.com>2019-10-28 05:11:55 -0700
commitb99d6e09052f04bb6655829d7ab51128ea88310f (patch)
tree3c7d11c68b7d5e5fede89f8c3c79acce679b404a
parentbe2364d9c5993259e353bc13bfa89c754246eea9 (diff)
parentfc6cc980cf3cdd9163ae64ddd7215b6d60dd8bd9 (diff)
downloadcouchdb-b99d6e09052f04bb6655829d7ab51128ea88310f.tar.gz
Merge pull request #2276 from cloudant/remove-inets-client-remains
Remove old clause which is no longer used
-rw-r--r--src/chttpd/src/chttpd.erl3
-rw-r--r--src/couch/src/couch_httpd.erl3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index 1e1d638be..87fb34158 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -1029,9 +1029,6 @@ error_headers(#httpd{mochi_req=MochiReq}=Req, 401=Code, ErrorStr, ReasonStr) ->
error_headers(_, Code, _, _) ->
{Code, []}.
-send_error(_Req, {already_sent, Resp, _Error}) ->
- {ok, Resp};
-
send_error(#httpd{} = Req, Error) ->
update_timeout_stats(Error, Req),
diff --git a/src/couch/src/couch_httpd.erl b/src/couch/src/couch_httpd.erl
index 3cdfc0ca3..10b44d16d 100644
--- a/src/couch/src/couch_httpd.erl
+++ b/src/couch/src/couch_httpd.erl
@@ -977,9 +977,6 @@ error_headers(#httpd{mochi_req=MochiReq}=Req, Code, ErrorStr, ReasonStr) ->
{Code, []}
end.
-send_error(_Req, {already_sent, Resp, _Error}) ->
- {ok, Resp};
-
send_error(Req, Error) ->
{Code, ErrorStr, ReasonStr} = error_info(Error),
{Code1, Headers} = error_headers(Req, Code, ErrorStr, ReasonStr),