aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-07 20:30:52 +0200
committerKim Alvefur <zash@zash.se>2017-07-07 20:30:52 +0200
commit41ea79ea5047fd3168263320362e8ee7094e0f75 (patch)
tree63555c99125c2670a91857c21c216c2300aa49d2 /net/http.lua
parent4590e4d9ee2a801805f168b52c1cc4ad67d7fb8d (diff)
downloadprosody-41ea79ea5047fd3168263320362e8ee7094e0f75.tar.gz
prosody-41ea79ea5047fd3168263320362e8ee7094e0f75.zip
net.http: Expose defaults
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index cce363ae..0d14e526 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -245,6 +245,7 @@ return {
request = function (u, ex, callback)
return default_http:request(u, ex, callback);
end;
+ default = default_http;
new = new;
events = default_http.events;
-- COMPAT