Diff

plugins/mod_http.lua @ 7518:829ebe806e82

mod_http: Fix indentation in redir_handler
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 24 Jul 2016 17:36:53 +0100
parent 7359:a5a080c12c96
child 7605:2481ebc7f715
line wrap: on
line diff
--- a/plugins/mod_http.lua	Sun Jul 24 17:36:15 2016 +0100
+++ b/plugins/mod_http.lua	Sun Jul 24 17:36:53 2016 +0100
@@ -47,9 +47,9 @@
 
 local function redir_handler(event)
 	event.response.headers.location = event.request.path.."/";
- if event.request.url.query then
- event.response.headers.location = event.response.headers.location .. "?" .. event.request.url.query
- end
+	if event.request.url.query then
+		event.response.headers.location = event.response.headers.location .. "?" .. event.request.url.query
+	end
 	return 301;
 end