[Tarantool-patches] [PATCH] httpc: consider "verbose" option correctly
Sergey Ostanevich
sergos at tarantool.org
Sat Dec 7 16:35:11 MSK 2019
LGTM
Best regards,
Sergos
Saturday, 7 December 2019, 16:10 +0300 from olegrok at tarantool.org <olegrok at tarantool.org>:
>From: Oleg Babin < babinoleg at mail.ru >
>
>Before this patch if user passed {verbose = false}
>to http client it was considered as "true"
>
>This patch fixes such behaviour and takes into account
>user's value
>---
> src/lua/httpc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/src/lua/httpc.c b/src/lua/httpc.c
>index a8e3e2525..4d703d711 100644
>--- a/src/lua/httpc.c
>+++ b/src/lua/httpc.c
>@@ -302,7 +302,7 @@ luaT_httpc_request(lua_State *L)
>
> lua_getfield(L, 5, "verbose");
> if (!lua_isnil(L, -1) && lua_isboolean(L, -1))
>- httpc_set_verbose(req, true);
>+ httpc_set_verbose(req, lua_toboolean(L, -1));
> lua_pop(L, 1);
>
> lua_getfield(L, 5, "interface");
>--
>2.23.0
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20191207/565c1a64/attachment.html>
More information about the Tarantool-patches
mailing list