mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 08:24:42 +00:00
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.
This commit is contained in:
parent
252412316e
commit
b73f653d00
@ -801,16 +801,7 @@ int http_process_request(struct stream *s, struct channel *req, int an_bit)
|
||||
_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))
|
||||
|
Loading…
Reference in New Issue
Block a user