# HG changeset patch # User Kim Alvefur # Date 1464708299 -7200 # Node ID 40824a38d505a2610f722192e1970feec5e26a48 # Parent bb8f7785aed7d00f950580f2dee8e128b391a3b1 mod_http_upload: Return nil if no upload slot is found (should prevent conflicts between multiple instances on the same path) diff -r bb8f7785aed7 -r 40824a38d505 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Tue May 31 17:13:48 2016 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue May 31 17:24:59 2016 +0200 @@ -84,7 +84,7 @@ local function upload_data(event, path) if not pending_slots[path] then module:log("warn", "Attempt to upload to unknown slot %q", path); - return 401; + return; -- 404 end local random, filename = path:match("^([^/]+)/([^/]+)$"); if not random then