Skip to content
Snippets Groups Projects
Commit 72613bb0 authored by Oleg Babin's avatar Oleg Babin Committed by Kirill Yukhin
Browse files

httpc: consider "verbose" option correctly

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
parent 4c13972f
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment