@@ -10,7 +10,7 @@ namespace Microsoft.SourceBrowser.SourceIndexServer
1010{
1111 public static class Helpers
1212 {
13- public static async Task ProxyRequestAsync ( this HttpContext context , string targetPath , Action < HttpRequestMessage > configureRequest = null )
13+ private static async Task ProxyRequestAsync ( this HttpContext context , string targetPath , Action < HttpRequestMessage > configureRequest = null )
1414 {
1515 var fs = new AzureBlobFileSystem ( IndexProxyUrl ) ;
1616 var props = fs . FileProperties ( targetPath ) ;
@@ -24,15 +24,15 @@ public static async Task ProxyRequestAsync(this HttpContext context, string targ
2424 }
2525 }
2626
27- private static bool UrlExists ( string proxyRequestPath )
27+ private static bool FileExists ( string proxyRequestPath )
2828 {
2929 var fs = new AzureBlobFileSystem ( IndexProxyUrl ) ;
3030 return fs . FileExists ( proxyRequestPath ) ;
3131 }
3232
3333 public static async Task ServeProxiedIndex ( HttpContext context , Func < Task > next )
3434 {
35- var path = context . Request . Path . ToUriComponent ( ) ;
35+ var path = context . Request . Path . Value ;
3636
3737 if ( ! path . EndsWith ( ".html" , StringComparison . Ordinal ) && ! path . EndsWith ( ".txt" , StringComparison . Ordinal ) )
3838 {
@@ -49,7 +49,7 @@ public static async Task ServeProxiedIndex(HttpContext context, Func<Task> next)
4949
5050 var proxyRequestPathSuffix = ( path . StartsWith ( "/" , StringComparison . Ordinal ) ? path : "/" + path ) . ToLowerInvariant ( ) ;
5151
52- if ( ! UrlExists ( proxyRequestPathSuffix ) )
52+ if ( ! FileExists ( proxyRequestPathSuffix ) )
5353 {
5454 await next ( ) . ConfigureAwait ( false ) ;
5555 return ;
0 commit comments