From eab4a2e3fdc3e316378136b01f66cb5f97aa458f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 25 May 2018 17:21:59 +0100 Subject: [PATCH] lib/lua/nb.lua --- lib/lua/nb.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index d6e50585..09073592 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -209,8 +209,8 @@ function nb:md2html(content) return content end --- function nb.api(url,fmt) return nb:api(url,fmt) end -function nb:api(url,fmt) +-- function nb.json2html(url,fmt) return nb:api(url,fmt) end +function nb:json2html(url,fmt) local res = ngx.location.capture(url) if res.status >= 500 then ngx.exit(res.status) end if not res.body then return end -- 2.47.3