Skip to content

Commit

Permalink
fix file server
Browse files Browse the repository at this point in the history
  • Loading branch information
KedamaOvO committed Jul 1, 2018
1 parent 756103a commit a88682c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/FileServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public FileServer(int port = 10081) : base(port)

protected override void OnResponse(HttpListenerRequest request, HttpListenerResponse response)
{
var url = HttpUtility.UrlDecode(request.RawUrl).Remove(0, 1);
var url = request.Url.LocalPath.Remove(0, 1);
var filename = Path.Combine(Setting.FileServerRootPath, url);
if (!url.Contains(".."))
{
Expand Down

0 comments on commit a88682c

Please sign in to comment.