Skip to content

Commit 1389cf7

Browse files
committed
docs: pointing to solution for FIXME
discussed in pull request #159
1 parent a804c7f commit 1389cf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ var $ = require('cheerio'); // Basically jQuery for node.js
430430

431431
function autoParse(body, response, resolveWithFullResponse) {
432432
// FIXME: The content type string could contain additional values like the charset.
433+
// Consider using the `content-type` library for a robust comparison.
433434
if (response.headers['content-type'] === 'application/json') {
434435
return JSON.parse(body);
435436
} else if (response.headers['content-type'] === 'text/html') {

0 commit comments

Comments
 (0)