mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-20 01:29:05 +08:00
fix: trimstart url
This commit is contained in:
parent
33e14e5404
commit
0c15946874
@ -547,7 +547,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
|||||||
) {
|
) {
|
||||||
const uid = await auth.solveUID();
|
const uid = await auth.solveUID();
|
||||||
let chargeAmount = 0;
|
let chargeAmount = 0;
|
||||||
const noSlashURL = ctx.req.url.slice(1);
|
const noSlashURL = ctx.req.url.slice(1).trimStart();
|
||||||
if (!noSlashURL) {
|
if (!noSlashURL) {
|
||||||
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'))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user