From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.mail.ru (smtp3.mail.ru [94.100.179.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 8390346971A for ; Sat, 7 Dec 2019 16:10:17 +0300 (MSK) From: olegrok@tarantool.org Date: Sat, 7 Dec 2019 16:10:14 +0300 Message-Id: <20191207131014.84735-1-olegrok@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] httpc: consider "verbose" option correctly List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: Oleg Babin From: Oleg Babin 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