diff options
Diffstat (limited to 'prosody-module')
-rw-r--r-- | prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua index 50f1f78..e2e0107 100644 --- a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua +++ b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua @@ -121,7 +121,7 @@ end local function deletefile(origin, orig_from, stanza, request) -- validate local fileurl = request:get_child_text("fileurl"); - if not fileurl then + if not fileurl or fileurl == '' then origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid fileurl")); return true; end @@ -169,7 +169,7 @@ local function deletefile(origin, orig_from, stanza, request) return true; end end - elseif statuscode == 204 then + elseif statuscode == 204 or statuscode == 404 then local reply = st.reply(stanza); reply:tag("deleted", { xmlns = xmlns_http_upload }); origin.send(reply); |