Diff

mod_rest/mod_rest.lua @ 3864:d845475c75f3

mod_rest: Process results even on internal errors with HTTP request
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jan 2020 20:12:50 +0100
parent 3862:3b6b8dcff78e
child 3865:a44e20cbd986
line wrap: on
line diff
--- 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