diff options
author | lookshe <github@lookshe.org> | 2016-01-05 12:53:44 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2016-01-05 12:53:44 +0100 |
commit | 0c7ae98cf7f63c8e9b1bd0a665e1093d2da24b6c (patch) | |
tree | b77499292c8b70c8fc18adb24c55cb62bd6d782a /prosody-module/mod_http_upload_external/mod_http_upload_external.lua | |
parent | f95c25646808b0ec0175b371a0764e7604c4b4cf (diff) |
deleted old "lib" and corrected copy-paste-error
Diffstat (limited to '')
-rw-r--r-- | prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 2 |
1 files changed, 1 insertions, 1 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 c9d7335..4910ab9 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 @@ -52,7 +52,7 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event) local content_type = request:get_child_text("content-type"); -- build the body - local reqbody = "xmpp_server_key=" .. xmpp_server_key .. "&size=" .. size .. "&filename=" .. filename .. "&user_jid=" .. user_jid; + local reqbody = "xmpp_server_key=" .. xmpp_server_key .. "&size=" .. filesize .. "&filename=" .. filename .. "&user_jid=" .. orig_from; if content_type then reqbody = reqbody .. "&content_type=" .. content_type; end |