diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-07 14:27:09 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-07 14:27:09 +0100 |
commit | 860ec2f6436ac7cba31969ab13f163c9fbe691d6 (patch) | |
tree | 3eb25f44b4a8000eb61942f54fc9579281b39a90 | |
parent | d159b09ab6d58d7a15c2959def2e143ca7cbe2b2 (diff) | |
download | trove-setup-860ec2f6436ac7cba31969ab13f163c9fbe691d6.tar.gz |
Updates from working with Richard
-rw-r--r-- | mason-notify.post-receive.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mason-notify.post-receive.lua b/mason-notify.post-receive.lua index 2b7ec70..bb23ec4 100644 --- a/mason-notify.post-receive.lua +++ b/mason-notify.post-receive.lua @@ -45,6 +45,7 @@ if notify_mason and repo.name ~= "gitano-admin" then for i = 1, #urlbases do local comma = (i==#urlbases) and "" or "," + _(("%q,"):format(urlbases[i] .. repo.name) _(("%q%s"):format(urlbases[i] .. repo.name .. ".git", comma)) end @@ -80,7 +81,7 @@ if notify_mason and repo.name ~= "gitano-admin" then log.state("Notifying Mason of changes...") local code, msg, headers, content = - http.post(masonhost, basepath, "text/json", masoninfo) + http.post(masonhost, basepath, "application/json", masoninfo) if code ~= "200" then log.state("Notification failed somehow") end |