Diff

net/http.lua @ 8196:bc2bcfa63b43

net.http: Expose defaults
author Kim Alvefur <zash@zash.se>
date Fri, 07 Jul 2017 20:30:52 +0200
parent 8195:3accfae91946
child 8197:55826e29c719
line wrap: on
line diff
--- a/net/http.lua	Fri Jul 07 20:16:00 2017 +0200
+++ b/net/http.lua	Fri Jul 07 20:30:52 2017 +0200
@@ -245,6 +245,7 @@
 	request = function (u, ex, callback)
 		return default_http:request(u, ex, callback);
 	end;
+	default = default_http;
 	new = new;
 	events = default_http.events;
 	-- COMPAT