|
@@ -1627,7 +1627,14 @@ class ProcessorHelper {
|
|
|
});
|
|
});
|
|
|
if (!matchCharsetEquals(content.data, content.charset || options.charset)) {
|
|
if (!matchCharsetEquals(content.data, content.charset || options.charset)) {
|
|
|
options = Object.assign({}, options, { charset: getCharset(content.data) });
|
|
options = Object.assign({}, options, { charset: getCharset(content.data) });
|
|
|
- return getStylesheetContent(resourceURL);
|
|
|
|
|
|
|
+ return util.getContent(resourceURL, {
|
|
|
|
|
+ maxResourceSize: options.maxResourceSize,
|
|
|
|
|
+ maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
|
|
+ validateTextContentType: true,
|
|
|
|
|
+ frameId: options.frameId,
|
|
|
|
|
+ charset: options.charset,
|
|
|
|
|
+ resourceReferrer: options.resourceReferrer
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
return content;
|
|
return content;
|
|
|
}
|
|
}
|