diff options
-rw-r--r-- | lib/gitano/actions.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitano/actions.lua b/lib/gitano/actions.lua index 587014a..0e4bebd 100644 --- a/lib/gitano/actions.lua +++ b/lib/gitano/actions.lua @@ -49,11 +49,11 @@ local function http_txn(method, host, path, headers, body) local req_lines = { method .. " " .. path .. " HTTP/1.0", "Host: " .. host, - "Connection: Close", } for k, v in pairs(headers) do req_lines[#req_lines+1] = ("%s: %s"):format(k,v) end + req_lines[#req_lines+1] = "Connection: Close" req_lines[#req_lines+1] = "" req_lines[#req_lines+1] = "" local req = table.concat(req_lines, "\r\n") @@ -218,7 +218,8 @@ local cia_xmlrpc_pattern = [[ local function send_to_cia(msg) -- By passing nil as the content-type we don't send a content-type -- header, which matches what we did before - return http_post("cia.vc", "/RPC2", nil, msg) + return http_post("cia.vc", "/RPC2", + nil, cia_xmlrpc_pattern:format(util.html_escape(msg))) end local function cia_inform_commits(project, branch, repo, previoustip, newtip) |