delete all duplicate empty blanks (#542)

falco-CLA-1.0-signed-off-by: Xiang Dai <764524258@qq.com>
This commit is contained in:
Xiang Dai
2019-02-28 00:53:40 +08:00
committed by Michael Ducy
parent a6c5926336
commit 04b1b4da67
9 changed files with 25 additions and 26 deletions

View File

@@ -186,7 +186,7 @@ int falco_outputs::handle_http(lua_State *ls)
slist1 = NULL;
if (!lua_isstring(ls, -1) ||
!lua_isstring(ls, -2))
!lua_isstring(ls, -2))
{
lua_pushstring(ls, "Invalid arguments passed to handle_http()");
lua_error(ls);
@@ -196,7 +196,7 @@ int falco_outputs::handle_http(lua_State *ls)
string msg = (char *) lua_tostring(ls, 2);
curl = curl_easy_init();
if(curl)
if(curl)
{
slist1 = curl_slist_append(slist1, "Content-Type: application/json");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist1);