fix: missing url query param

This commit is contained in:
yanlong.wang 2025-03-10 15:15:59 +08:00
parent df127d0207
commit 531c660a5d
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -228,7 +228,7 @@ export class CrawlerHost extends RPCHost {
let chargeAmount = 0;
const crawlerOptions = ctx.method === 'GET' ? crawlerOptionsHeaderOnly : crawlerOptionsParamsAllowed;
const targetUrl = await this.getTargetUrl(tryDecodeURIComponent(ctx.path), crawlerOptions);
const targetUrl = await this.getTargetUrl(tryDecodeURIComponent(ctx.url), crawlerOptions);
if (!targetUrl) {
return await this.getIndex(auth);
}