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