# HG changeset patch # User Kim Alvefur # Date 1335219435 -7200 # Node ID e17fe44146b0aa51439474d89ccc8775ecf39b56 # Parent 7e4c1fb44dd745582781683bbc84b34200525825 mod_http_files: Rename argument to reflect what it actually is diff -r 7e4c1fb44dd7 -r e17fe44146b0 plugins/mod_http_files.lua --- a/plugins/mod_http_files.lua Mon Apr 23 23:37:43 2012 +0200 +++ b/plugins/mod_http_files.lua Tue Apr 24 00:17:15 2012 +0200 @@ -47,8 +47,8 @@ return path; end -function serve_file(request, path) - local response = request.response; +function serve_file(event, path) + local response = event.response; path = path and preprocess_path(path); if not path then response.status = 400; @@ -57,7 +57,7 @@ local full_path = http_base..path; if stat(full_path, "mode") == "directory" then if stat(full_path.."/index.html", "mode") == "file" then - return serve_file(request, path.."/index.html"); + return serve_file(event, path.."/index.html"); end response.status = 403; return response:send(response_403);