Use multipart only if it is present in headers.