fixed attachment download headers, refs #247