diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-16 11:46:25 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-16 11:46:25 +0100 |
commit | 1a27e3d5bb9f7484f2cd5facad08d09a99386135 (patch) | |
tree | 30ad400777195befb7ef54e416dcbdf0c534c646 | |
parent | bf5c531aea19e20d1b328b89467d6f37750380e1 (diff) | |
download | gitano-http-updates.tar.gz |
ACTIONS: Reinstate lost formatting for CIAhttp-updates
-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) |