mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
CLEANUP: http-client: Remove useless indentation when sending request body
It was useless to have an indentation to handle HTTPCLIENT_S_REQ_BODY state in the http-client I/O handler.
This commit is contained in:
parent
217da087fd
commit
96aa251d20
@ -534,7 +534,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
||||
goto out;
|
||||
|
||||
while (1) {
|
||||
|
||||
/* required to stop */
|
||||
if (hc->flags & HTTPCLIENT_FA_STOP)
|
||||
goto error;
|
||||
@ -575,7 +574,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
||||
|
||||
case HTTPCLIENT_S_REQ_BODY:
|
||||
/* call the payload callback */
|
||||
{
|
||||
if (hc->ops.req_payload) {
|
||||
struct htx *hc_htx;
|
||||
|
||||
@ -644,8 +642,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
||||
|
||||
applet_have_more_data(appctx);
|
||||
goto process_data; /* we need to leave the IO handler once we wrote the request */
|
||||
}
|
||||
break;
|
||||
|
||||
case HTTPCLIENT_S_RES_STLINE:
|
||||
/* in HTX mode, don't try to copy the stline
|
||||
|
Loading…
Reference in New Issue
Block a user