You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some website resonding with the "content-type" which is not normalized, such as "Text/HTML"。
As expected, the text content should be parsed by the "text parser",but "Text" can't be recognized, so,none of parser is called.
Should add a line of code, as below( node/index.js) :
var max = _this4._maxRedirects;
var mime = utils.type(res.headers['content-type'] || '') || 'text/plain';
var type = mime.split('/')[0]; if (type) type = type.toLowerCase();
The text was updated successfully, but these errors were encountered:
Some website resonding with the "content-type" which is not normalized, such as "Text/HTML"。
As expected, the text content should be parsed by the "text parser",but "Text" can't be recognized, so,none of parser is called.
Should add a line of code, as below( node/index.js) :
var max = _this4._maxRedirects;
var mime = utils.type(res.headers['content-type'] || '') || 'text/plain';
var type = mime.split('/')[0];
if (type) type = type.toLowerCase();
The text was updated successfully, but these errors were encountered: