mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-16 11:55:56 +08:00
chore: add comments to clarify
This commit is contained in:
parent
531c660a5d
commit
cf01a2c504
@ -228,6 +228,8 @@ export class CrawlerHost extends RPCHost {
|
||||
let chargeAmount = 0;
|
||||
const crawlerOptions = ctx.method === 'GET' ? crawlerOptionsHeaderOnly : crawlerOptionsParamsAllowed;
|
||||
|
||||
// ctx.url in Koa is still not a real URL, just the full path including search query.
|
||||
// ctx.path in Koa does not include the search query.
|
||||
const targetUrl = await this.getTargetUrl(tryDecodeURIComponent(ctx.url), crawlerOptions);
|
||||
if (!targetUrl) {
|
||||
return await this.getIndex(auth);
|
||||
|
Loading…
x
Reference in New Issue
Block a user