This commit is contained in:
yanlong.wang 2024-10-14 17:33:24 +08:00
parent 6a97f0bfa6
commit a54816d12d
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ export class SearcherHost extends RPCHost {
) {
const uid = await auth.solveUID();
let chargeAmount = 0;
const noSlashPath = decodeURIComponent(ctx.req.url).slice(1);
const noSlashPath = decodeURIComponent(ctx.req.path).slice(1);
if (!noSlashPath && !q) {
const latestUser = uid ? await auth.assertUser() : undefined;
if (!ctx.req.accepts('text/plain') && (ctx.req.accepts('text/json') || ctx.req.accepts('application/json'))) {

@ -1 +1 @@
Subproject commit da6e55d2d5ea310ebc443dab6cdca9f7a9d8e67d
Subproject commit e3136746a0736b7308c56406abf0b7126ec788f9