Make multipart boundary header detection more flexible