fix headers for attachments
Merge pull request #92 from pachay/master

fix headers for attachments