From 1389cf774334a617ba5f261c324e9a719449407d Mon Sep 17 00:00:00 2001 From: analog-nico Date: Tue, 18 Oct 2016 10:46:22 -0700 Subject: [PATCH] docs: pointing to solution for FIXME discussed in pull request #159 --- README.md | 1 + 1 file changed, 1 insertion(+) 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') {