]> granicus.if.org Git - handbrake/commitdiff
WinGui: FIx a small bug in the HTTP Service
authorsr55 <sr55.hb@outlook.com>
Sun, 9 Dec 2018 21:06:45 +0000 (21:06 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 9 Dec 2018 21:15:55 +0000 (21:15 +0000)
win/CS/HandBrake.Worker/HttpServer.cs

index a920a85b33f3e854cb4d5477370591fbcbdefdd9..095b51b436471da203ac441dd6c6cc8f5f077d17 100644 (file)
@@ -64,7 +64,7 @@ namespace HandBrake.Worker
 
                                     try
                                     {
-                                        string path = context.Request.RawUrl.TrimStart('/');
+                                        string path = context.Request.RawUrl.TrimStart('/').TrimEnd('/');
 
                                         if (this.apiHandlers.TryGetValue(path, out var actionToPerform))
                                         {