# HG changeset patch # User Waqas Hussain # Date 1311542500 -18000 # Node ID 4099f08379364576b703b638c01d757f934a7974 # Parent 19469f3ad6d692f1c71e489663c641a8dbb7d836 mod_muc_log_http: Added assertion to ensure proper failure on empty responses. diff -r 19469f3ad6d6 -r 4099f0837936 mod_muc_log_http/muc_log_http/mod_muc_log_http.lua --- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Mon Jul 25 02:21:40 2011 +0500 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Mon Jul 25 02:21:40 2011 +0500 @@ -71,10 +71,9 @@ end function createDoc(body) - if body then - body = body:gsub("%%", "%%%%"); - return html.doc:gsub("###BODY_STUFF###", body); - end + assert(body, " HTTP response"); + body = body:gsub("%%", "%%%%"); + return html.doc:gsub("###BODY_STUFF###", body); end function urlunescape (escapedUrl)