diff --git a/README.md b/README.md index 093d5a3..3b67d26 100644 --- a/README.md +++ b/README.md @@ -430,6 +430,7 @@ var $ = require('cheerio'); // Basically jQuery for node.js function autoParse(body, response, resolveWithFullResponse) { // FIXME: The content type string could contain additional values like the charset. + // Consider using the `content-type` library for a robust comparison. if (response.headers['content-type'] === 'application/json') { return JSON.parse(body); } else if (response.headers['content-type'] === 'text/html') {