comparison mod_auth_http_async/mod_auth_http_async.lua @ 1938:cfe73f64ad29

mod_auth_http_async: Fix syntax error
author Kim Alvefur <zash@zash.se>
date Wed, 28 Oct 2015 15:03:49 +0100
parents 3729245498ae
children 54f9e8663139
comparison
equal deleted inserted replaced
1937:def6290a8cd1 1938:cfe73f64ad29
16 local host = module.host; 16 local host = module.host;
17 17
18 local api_base = module:get_option_string("http_auth_url", ""):gsub("$host", host); 18 local api_base = module:get_option_string("http_auth_url", ""):gsub("$host", host);
19 if api_base == "" then error("http_auth_url required") end 19 if api_base == "" then error("http_auth_url required") end
20 20
21 local function async_http_request(url, ex); 21 local function async_http_request(url, ex)
22 local wait, done = waiter(); 22 local wait, done = waiter();
23 23
24 local content, code, request, response; 24 local content, code, request, response;
25 local function cb(content_, code_, request_, response_) 25 local function cb(content_, code_, request_, response_)
26 content, code, request, response = content_, code_, request_, response_; 26 content, code, request, response = content_, code_, request_, response_;