mod_rest: Process results even on internal errors with HTTP request
authorKim Alvefur <zash@zash.se>
Sat, 25 Jan 2020 20:12:50 +0100
changeset 3868 d845475c75f3
parent 3867 45b04f05d624
child 3869 a44e20cbd986
mod_rest: Process results even on internal errors with HTTP request
mod_rest/mod_rest.lua
--- a/mod_rest/mod_rest.lua	Sat Jan 25 20:11:00 2020 +0100
+++ b/mod_rest/mod_rest.lua	Sat Jan 25 20:12:50 2020 +0100
@@ -223,7 +223,7 @@
 				},
 			}, function (body, code, response)
 				if code == 0 then
-					return module:log_status("error", "Could not connect to callback URL %q: %s", rest_url, body);
+					module:log_status("error", "Could not connect to callback URL %q: %s", rest_url, body);
 				else
 					module:set_status("info", "Connected");
 				end