We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a804c7f commit 1389cf7Copy full SHA for 1389cf7
README.md
@@ -430,6 +430,7 @@ var $ = require('cheerio'); // Basically jQuery for node.js
430
431
function autoParse(body, response, resolveWithFullResponse) {
432
// FIXME: The content type string could contain additional values like the charset.
433
+ // Consider using the `content-type` library for a robust comparison.
434
if (response.headers['content-type'] === 'application/json') {
435
return JSON.parse(body);
436
} else if (response.headers['content-type'] === 'text/html') {
0 commit comments