fixes Attempt to read a non-existent global 'xmlns'
This commit is contained in:
parent
52da5f834b
commit
5e01215867
1 changed files with 2 additions and 2 deletions
|
@ -369,7 +369,7 @@ local function create_upload_slot(origin, orig_from, stanza, namespace, recipien
|
||||||
|
|
||||||
local reply = st.reply(stanza);
|
local reply = st.reply(stanza);
|
||||||
reply:tag("slot", { xmlns = namespace });
|
reply:tag("slot", { xmlns = namespace });
|
||||||
if xmlns == xmlns_http_upload_0 then
|
if namespace == xmlns_http_upload_0 then
|
||||||
reply:tag("put", { url = put_url }):up();
|
reply:tag("put", { url = put_url }):up();
|
||||||
reply:tag("get", { url = get_url }):up();
|
reply:tag("get", { url = get_url }):up();
|
||||||
else
|
else
|
||||||
|
@ -484,4 +484,4 @@ module:hook("iq/host/"..xmlns_http_upload_0..":request", function (event)
|
||||||
local content_type = request.attr["content-type"] or "application/octet-stream";
|
local content_type = request.attr["content-type"] or "application/octet-stream";
|
||||||
|
|
||||||
return create_upload_slot(origin, orig_from, stanza, xmlns_http_upload_0, "Unknown", filename, filesize, content_type);
|
return create_upload_slot(origin, orig_from, stanza, xmlns_http_upload_0, "Unknown", filename, filesize, content_type);
|
||||||
end);
|
end);
|
||||||
|
|
Loading…
Add table
Reference in a new issue