Fix the bug mentioned in issue #140. For attachments whose filename contains non-ascii characters, only _value_ in content-disposition: attachment; filename="_value_" is expected to be encoded. For example, for an attachment named 测试.zip, the Content-Disposition header should be
Fix the bug mentioned in issue #140. For attachments whose filename contains non-ascii characters, only
_value_
incontent-disposition: attachment; filename="_value_"
is expected to be encoded. For example, for an attachment named测试.zip
, the Content-Disposition header should beinstead of
reference:RFC2183#section-2