# HG changeset patch # User Matthew Wild # Date 1530532660 -3600 # Node ID 44a187c82b5356e387aa29407df2911d3ddd8814 # Parent 7af4776a5dea9fdfed4d1cb5a71e796a995ece55 mod_http_upload_external: Fix to read content-type from correct place in stanza diff -r 7af4776a5dea -r 44a187c82b53 mod_http_upload_external/mod_http_upload_external.lua --- a/mod_http_upload_external/mod_http_upload_external.lua Mon Jul 02 12:56:51 2018 +0100 +++ b/mod_http_upload_external/mod_http_upload_external.lua Mon Jul 02 12:57:40 2018 +0100 @@ -94,7 +94,7 @@ local request = stanza.tags[1]; local filename = request:get_child_text("filename"); local filesize = tonumber(request:get_child_text("size")); - local filetype = request.attr["content-type"] or "application/octet-stream"; + local filetype = request:get_child_text("content-type") or "application/octet-stream"; local get_url, put_url = handle_request( origin, stanza, legacy_namespace, filename, filesize, filetype);