comparison mod_http_upload_external/mod_http_upload_external.lua @ 2939:280305c043b0

mod_http_upload_external: Use correct namespace (thanks Wiktor)
author Kim Alvefur <zash@zash.se>
date Thu, 22 Mar 2018 12:32:02 +0100
parents d6badf56ab5f
children ac99a04231b1
comparison
equal deleted inserted replaced
2938:f000ba14d531 2939:280305c043b0
107 local stanza, origin = event.stanza, event.origin; 107 local stanza, origin = event.stanza, event.origin;
108 local request = stanza.tags[1]; 108 local request = stanza.tags[1];
109 local filename = request.attr.filename; 109 local filename = request.attr.filename;
110 local filesize = tonumber(request.attr.size); 110 local filesize = tonumber(request.attr.size);
111 local get_url, put_url = handle_request( 111 local get_url, put_url = handle_request(
112 origin, stanza, legacy_namespace, filename, filesize); 112 origin, stanza, namespace, filename, filesize);
113 113
114 if not get_url then 114 if not get_url then
115 -- error was already sent 115 -- error was already sent
116 return true; 116 return true;
117 end 117 end