Skip to content

Commit

Permalink
Update QuickMan.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
thebitbrine authored Apr 25, 2019
1 parent 45441cd commit 56182ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QuickMan.Lib/QuickMan.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace TheBitBrine
{
Expand Down Expand Up @@ -252,6 +249,9 @@ private void Process(HttpListenerContext context)
RequestedEndpoint = RequestedEndpoint.Remove(RequestedEndpoint.Length - 2, 1);
if (RequestedEndpoint.StartsWith("/")) RequestedEndpoint = RequestedEndpoint.Remove(0, 1);
}

if (RequestedEndpoint.Contains('?'))
RequestedEndpoint = RequestedEndpoint.Split('?')[0];

if (_Endpoints.ContainsKey(RequestedEndpoint))
_Endpoints[RequestedEndpoint](context);
Expand Down

0 comments on commit 56182ab

Please sign in to comment.