mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +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
7c5d9cc4da
commit
d8267dab51
@ -534,7 +534,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
||||||
/* required to stop */
|
/* required to stop */
|
||||||
if (hc->flags & HTTPCLIENT_FA_STOP)
|
if (hc->flags & HTTPCLIENT_FA_STOP)
|
||||||
goto error;
|
goto error;
|
||||||
@ -575,7 +574,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
|||||||
|
|
||||||
case HTTPCLIENT_S_REQ_BODY:
|
case HTTPCLIENT_S_REQ_BODY:
|
||||||
/* call the payload callback */
|
/* call the payload callback */
|
||||||
{
|
|
||||||
if (hc->ops.req_payload) {
|
if (hc->ops.req_payload) {
|
||||||
struct htx *hc_htx;
|
struct htx *hc_htx;
|
||||||
|
|
||||||
@ -644,8 +642,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
|
|||||||
|
|
||||||
applet_have_more_data(appctx);
|
applet_have_more_data(appctx);
|
||||||
goto process_data; /* we need to leave the IO handler once we wrote the request */
|
goto process_data; /* we need to leave the IO handler once we wrote the request */
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case HTTPCLIENT_S_RES_STLINE:
|
case HTTPCLIENT_S_RES_STLINE:
|
||||||
/* in HTX mode, don't try to copy the stline
|
/* in HTX mode, don't try to copy the stline
|
||||||
|
Loading…
Reference in New Issue
Block a user