fix for missing mimetype in header