This commit follows up of ea9bc06c. To check `@response.content_type.to_s` is ended with `"xml"`, to use `\z` is sufficient.