# HG changeset patch # User Kim Alvefur # Date 1442227500 -7200 # Node ID e3a0ebe671cc05622627f799344eadebc095fda3 # Parent 5244c9b0b29740727d8321f210baf8a7f6fe4187 mod_http_upload: Include failure reason in error response diff -r 5244c9b0b297 -r e3a0ebe671cc mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Mon Sep 14 12:44:10 2015 +0200 +++ b/mod_http_upload/mod_http_upload.lua Mon Sep 14 12:45:00 2015 +0200 @@ -43,7 +43,7 @@ -- validate local filename = request:get_child_text("filename"); if not filename or filename:find("/") then - origin.send(st.error_reply(stanza, "modify", "bad-request")); + origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid filename")); return true; end local reply = st.reply(stanza);