Setting XML to be downloaded as an Attachment

All other mimetypes are treated normally.

Closes DLTP-28
Extra empty line detected at body end.