mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-15 15:35:59 +08:00
fix: normalize-url
pollution
This commit is contained in:
parent
d50e12a6af
commit
eaa06781e3
@ -585,7 +585,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
|||||||
let urlToCrawl;
|
let urlToCrawl;
|
||||||
const normalizeUrl = (await pNormalizeUrl).default;
|
const normalizeUrl = (await pNormalizeUrl).default;
|
||||||
try {
|
try {
|
||||||
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim(), { stripWWW: false, removeTrailingSlash: false, removeSingleSlash: false }));
|
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim(), { stripWWW: false, removeTrailingSlash: false, removeSingleSlash: false, sortQueryParameters:false }));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new ParamValidationError({
|
throw new ParamValidationError({
|
||||||
message: `${err}`,
|
message: `${err}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user