Changeset

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
parents 3863:45b04f05d624
children 3865:a44e20cbd986
files mod_rest/mod_rest.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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