diff options
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r-- | lualib/lua_mime.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 9b530a996..b839933b0 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -44,6 +44,7 @@ end -- * out: new content (body only) -- * need_rewrite_ct: boolean field that means if we must rewrite content type -- * new_ct: new content type (type => string, subtype => string) +-- * new_cte: new content-transfer encoding (string) --]] exports.add_text_footer = function(task, html_footer, text_footer) local newline_s = newline(task) @@ -84,6 +85,8 @@ exports.add_text_footer = function(task, html_footer, text_footer) 'Content-Transfer-Encoding: %s', ct, newline_s, cte) out[#out + 1] = '' + else + res.new_cte = cte end local content = tostring(tp:get_content('raw_utf') or '') |