comparison mod_auth_http_async/mod_auth_http_async.lua @ 1930:95bbf3c4aa27

mod_auth_http_async: Don't set global
author Kim Alvefur <zash@zash.se>
date Sat, 24 Oct 2015 13:19:10 +0200
parents 439711709d29
children bd5412eb0a6d
comparison
equal deleted inserted replaced
1929:82834df1dea6 1930:95bbf3c4aa27
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 ret; 25 local ret;
26 function cb(content_, code_, request_, response_) 26 local function cb(content_, code_, request_, response_)
27 content, code, request, response = content_, code_, request_, response_; 27 content, code, request, response = content_, code_, request_, response_;
28 done(); 28 done();
29 end 29 end
30 wait(); 30 wait();
31 return content, code, request, response; 31 return content, code, request, response;