mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 16:19:06 +08:00
fix
This commit is contained in:
parent
6a97f0bfa6
commit
a54816d12d
@ -90,7 +90,7 @@ export class SearcherHost extends RPCHost {
|
|||||||
) {
|
) {
|
||||||
const uid = await auth.solveUID();
|
const uid = await auth.solveUID();
|
||||||
let chargeAmount = 0;
|
let chargeAmount = 0;
|
||||||
const noSlashPath = decodeURIComponent(ctx.req.url).slice(1);
|
const noSlashPath = decodeURIComponent(ctx.req.path).slice(1);
|
||||||
if (!noSlashPath && !q) {
|
if (!noSlashPath && !q) {
|
||||||
const latestUser = uid ? await auth.assertUser() : undefined;
|
const latestUser = uid ? await auth.assertUser() : undefined;
|
||||||
if (!ctx.req.accepts('text/plain') && (ctx.req.accepts('text/json') || ctx.req.accepts('application/json'))) {
|
if (!ctx.req.accepts('text/plain') && (ctx.req.accepts('text/json') || ctx.req.accepts('application/json'))) {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit da6e55d2d5ea310ebc443dab6cdca9f7a9d8e67d
|
Subproject commit e3136746a0736b7308c56406abf0b7126ec788f9
|
Loading…
x
Reference in New Issue
Block a user