Handle case where res.header is not a string