Fix a stupid bug in GetAsync
This commit is contained in:
parent
f21e23735d
commit
3e04d02707
|
@ -145,11 +145,12 @@ public class TYTDServer : Server
|
||||||
}
|
}
|
||||||
public override async Task GetAsync(ServerContext ctx)
|
public override async Task GetAsync(ServerContext ctx)
|
||||||
{
|
{
|
||||||
Console.WriteLine(ctx.UrlPath);
|
|
||||||
if(onlyVideos)
|
if(onlyVideos)
|
||||||
{
|
{
|
||||||
|
|
||||||
string url=ctx.UrlPath.Substring(1);
|
string url=ctx.UrlAndQuery.Substring(1);
|
||||||
|
|
||||||
stk?.Push(url);
|
stk?.Push(url);
|
||||||
await ctx.SendTextAsync("<script>window.history.back();</script>");
|
await ctx.SendTextAsync("<script>window.history.back();</script>");
|
||||||
}
|
}
|
||||||
|
@ -160,7 +161,8 @@ public class TYTDServer : Server
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string url=ctx.UrlPath.Substring(1);
|
string url=ctx.UrlAndQuery.Substring(1);
|
||||||
|
|
||||||
await cb(url);
|
await cb(url);
|
||||||
await ctx.SendTextAsync("<script>window.history.back();</script>");
|
await ctx.SendTextAsync("<script>window.history.back();</script>");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue