diff mod_http_logging/mod_http_logging.lua @ 2971:c89be016a075

mod_http_logging: Fix typo [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 30 Mar 2018 13:41:56 +0200
parents 8681729a47d5
children
line wrap: on
line diff
--- a/mod_http_logging/mod_http_logging.lua	Fri Mar 30 13:40:50 2018 +0200
+++ b/mod_http_logging/mod_http_logging.lua	Fri Mar 30 13:41:56 2018 +0200
@@ -17,7 +17,7 @@
 local function get_content_len(response, body)
 	local len = response.headers.content_length;
 	if len then return len; end
-	if not body then body = request.body; end
+	if not body then body = response.body; end
 	if body then return #tostring(body); end
 end