diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-11-05 13:34:18 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-11-05 13:34:18 +0000 |
commit | d9139ded8877512ecf12f0378bbb052a16b07159 (patch) | |
tree | a74a15dafd897ca43a81601f63295c59df0def56 /lib | |
parent | 3f8491dc00fb9ec758cef1e3a1fe6529a6df5bac (diff) | |
download | gitano-d9139ded8877512ecf12f0378bbb052a16b07159.tar.gz |
Remove legacy support for http_get and http.get/http.post in the supple environment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitano/actions.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/gitano/actions.lua b/lib/gitano/actions.lua index 95be9d0..94cb1dd 100644 --- a/lib/gitano/actions.lua +++ b/lib/gitano/actions.lua @@ -99,16 +99,6 @@ local function curl_txn(...) return code, msg, headers, content end -local function http_get(host, path) - log.warn("Hook using legacy http_get or http.get, please update to use new fetch() interface") - return curl_txn("http://" .. host .. path) -end - -local function http_post(host, path, content_type, body) - log.warn("Hook using legacy http.post, please update to use new fetch() interface") - return curl_txn("http://" .. host .. path, body, content_type) -end - local function set_supple_globals(action) local globs = {} local logcopy = {} @@ -120,9 +110,6 @@ local function set_supple_globals(action) end globs["log"] = logcopy if action == "post-receive" then - globs["http_get"] = http_get -- Legacy name for this, use http.get - local http_tab = { get = http_get, post = http_post } -- Moar legacy for now - globs["http"] = http_tab globs["fetch"] = curl_txn end supple.set_globals(globs) |