mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-04-18 11:50:00 +08:00
fix: serp index
This commit is contained in:
parent
b58a2db69a
commit
f4d0eade60
@ -149,7 +149,7 @@ export class SerpHost extends RPCHost {
|
||||
const uid = await auth.solveUID();
|
||||
if (!q) {
|
||||
if (ctx.path === '/') {
|
||||
const indexObject = this.getIndex(ctx, auth);
|
||||
const indexObject = await this.getIndex(ctx, auth);
|
||||
if (!ctx.accepts('text/plain') && (ctx.accepts('text/json') || ctx.accepts('application/json'))) {
|
||||
return indexObject;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user