mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-15 14:15:52 +08:00
fix: url wrong normalization
This commit is contained in:
parent
781b835466
commit
6e36f0a447
@ -168,7 +168,7 @@ ${this.content}
|
|||||||
const noSlashURL = ctx.req.url.slice(1);
|
const noSlashURL = ctx.req.url.slice(1);
|
||||||
let urlToCrawl;
|
let urlToCrawl;
|
||||||
try {
|
try {
|
||||||
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim(), { removeTrailingSlash: false, removeSingleSlash: false }));
|
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim(), { stripWWW: false, removeTrailingSlash: false, removeSingleSlash: false }));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new ParamValidationError({
|
throw new ParamValidationError({
|
||||||
message: `${err}`,
|
message: `${err}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user