Compare to text of response instead of content

`content` is returned as bytes whereas `text` is returned as a string.