diff --git a/src/Middleware/UriReplacementHandler.cs b/src/Middleware/UriReplacementHandler.cs index 05e43ad..9c86409 100644 --- a/src/Middleware/UriReplacementHandler.cs +++ b/src/Middleware/UriReplacementHandler.cs @@ -44,10 +44,7 @@ protected override async Task SendAsync( try { - var uriReplacementHandlerOption = request.GetRequestOption() ?? uriReplacement; - if (uriReplacement.IsEnabled()) { - request.RequestUri = uriReplacementHandlerOption.Replace(request.RequestUri); - } + request.RequestUri = uriReplacement.Replace(request.RequestUri); return await base.SendAsync(request, cancellationToken); } finally