CLEANUP: http_ana: Remove now unused label from http_process_request()
Since last change on HTTP analysers (252412316 "MEDIUM: proxy: remove
long-broken 'option http_proxy'"), http_process_request() may only return
internal errors on failures. Thus the label used to handle bad requests may
be removed.
This patch should fix the issue #1330.
diff --git a/src/http_ana.c b/src/http_ana.c
index 884ad50..b360540 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -801,16 +801,7 @@
_HA_ATOMIC_INC(&s->be->be_counters.internal_errors);
if (sess->listener && sess->listener->counters)
_HA_ATOMIC_INC(&sess->listener->counters->internal_errors);
- goto return_prx_cond;
-
- return_bad_req: /* let's centralize all bad requests */
- txn->status = 400;
- _HA_ATOMIC_INC(&sess->fe->fe_counters.failed_req);
- if (sess->listener && sess->listener->counters)
- _HA_ATOMIC_INC(&sess->listener->counters->failed_req);
- /* fall through */
- return_prx_cond:
http_reply_and_close(s, txn->status, http_error_message(s));
if (!(s->flags & SF_ERR_MASK))