diff --git a/src/lua/httpc.c b/src/lua/httpc.c
index a8e3e2525b34ad77e56bc60c4a802fcf744a3124..4d703d711737cd22646490e31a678e63c8259862 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");