We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f780f70 commit f302221Copy full SHA for f302221
nanoFramework.WebServer/WebServer.cs
@@ -555,7 +555,7 @@ private void StartListener()
555
556
// Check auth first
557
mustAuthenticate = route.Authentication != null && route.Authentication.AuthenticationType != AuthenticationType.None;
558
- isAuthOk = false;
+ isAuthOk = !mustAuthenticate;
559
560
if (mustAuthenticate)
561
{
@@ -578,7 +578,7 @@ private void StartListener()
578
}
579
580
581
- if (mustAuthenticate && isAuthOk)
+ if (isAuthOk)
582
583
route.Callback.Invoke(null, new object[] { new WebServerEventArgs(context) });
584
0 commit comments