diff --git a/Nibriboard/Nibriboard.csproj b/Nibriboard/Nibriboard.csproj
index e15ce68..6f0bbac 100644
--- a/Nibriboard/Nibriboard.csproj
+++ b/Nibriboard/Nibriboard.csproj
@@ -52,7 +52,7 @@
..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll
- ..\packages\GlidingSquirrel.0.6.0-alpha\lib\net462\GlidingSquirrel.dll
+ ..\packages\GlidingSquirrel.0.6.1-alpha\lib\net462\GlidingSquirrel.dll
@@ -179,7 +179,10 @@
-
+
+
+
+
diff --git a/Nibriboard/NibriboardApp.cs b/Nibriboard/NibriboardApp.cs
index f3e6aa5..7dbc797 100644
--- a/Nibriboard/NibriboardApp.cs
+++ b/Nibriboard/NibriboardApp.cs
@@ -75,7 +75,7 @@ namespace Nibriboard
return Task.CompletedTask;
}
- public override async Task HandleHttpRequest(HttpRequest request, HttpResponse response)
+ public override async Task HandleHttpRequest(HttpRequest request, HttpResponse response)
{
if(request.Method != HttpMethod.GET)
{
@@ -83,7 +83,7 @@ namespace Nibriboard
response.ContentType = "text/plain";
await response.SetBody("Error: That method isn't supported yet.");
logRequest(request, response);
- return;
+ return HttpConnectionAction.Continue;
}
if(request.Url == "/Settings.json")
@@ -95,7 +95,7 @@ namespace Nibriboard
await response.SetBody(settingsJson);
Log.WriteLine("[Http/ClientSettings] Sent settings to {0}", request.ClientAddress);
- return;
+ return HttpConnectionAction.Continue;
}
@@ -110,7 +110,7 @@ namespace Nibriboard
response.ContentType = "text/plain";
await response.SetBody($"Can't find '{expandedFilePath}'.");
logRequest(request, response);
- return;
+ return HttpConnectionAction.Continue;
}
response.ContentType = LookupMimeType(expandedFilePath);
@@ -127,6 +127,8 @@ namespace Nibriboard
Log.WriteLine(error.ToString());
}
logRequest(request, response);
+
+ return HttpConnectionAction.Continue;
}
#region Interface Methods
@@ -202,6 +204,12 @@ namespace Nibriboard
);
}
- #endregion
- }
+ public override bool ShouldAcceptConnection(HttpRequest connectionRequest, HttpResponse connectionResponse)
+ {
+ // TODO: Implement support for user accounts here
+ return true;
+ }
+
+ #endregion
+ }
}
diff --git a/Nibriboard/packages.config b/Nibriboard/packages.config
index 7499751..60ff3fc 100644
--- a/Nibriboard/packages.config
+++ b/Nibriboard/packages.config
@@ -1,6 +1,6 @@
-
+