this check is broken and isnt needed anyway
This commit is contained in:
parent
a54b42ee67
commit
ef1d27e79e
1 changed files with 0 additions and 4 deletions
|
@ -74,10 +74,6 @@ public class HTTPServer
|
||||||
if (context.Request.Query.ContainsKey("vm"))
|
if (context.Request.Query.ContainsKey("vm"))
|
||||||
{
|
{
|
||||||
string vm = context.Request.Query["vm"];
|
string vm = context.Request.Query["vm"];
|
||||||
if (Program.VMs.All(v => v.cvm.Node != vm)) {
|
|
||||||
context.Response.StatusCode = 404;
|
|
||||||
return Results.Text($"404: {vm} not found.");
|
|
||||||
}
|
|
||||||
q.VM = vm;
|
q.VM = vm;
|
||||||
}
|
}
|
||||||
if (context.Request.Query.ContainsKey("username"))
|
if (context.Request.Query.ContainsKey("username"))
|
||||||
|
|
Loading…
Reference in a new issue