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:
Christopher Faulet 2025-07-22 08:14:24 +02:00
parent 7c5d9cc4da
commit d8267dab51

View File

@ -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