remove empty path segmentsss
This commit is contained in:
parent
d948ab6191
commit
036b34233f
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public sealed class HttpServer
|
|||
await req.ReadAllHeaders();
|
||||
|
||||
//Parse path
|
||||
ArraySegment<string> pathSpl = req.Path.Split('/');
|
||||
ArraySegment<string> pathSpl = req.Path.Split('/', StringSplitOptions.RemoveEmptyEntries);
|
||||
if (pathSpl.Count == 0)
|
||||
pathSpl = new string[] { string.Empty };
|
||||
|
||||
|
|
Loading…
Reference in a new issue