Authored by chunhua.zhang

add

... ... @@ -62,12 +62,19 @@ function route(redirectPath)
end
end
---- function read request body
function init_read_body()
if ngx.var.request_method=="POST" and ngx.var.content_type and string.match(ngx.var.content_type,"application/x%-www%-form%-urlencoded.*") then
ngx.req.read_body()
end
end
---- main
function main()
local redirectPath = "/apigateway" ;
init_read_body()
local percentage = switch_controller.get_percentage()
if percentage and percentage >= 1 then
local uid = http_request.get_req_param("uid")
... ...