mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-18 22:28:14 +08:00
Added support for query string parameters in upstream path template (#467)
This commit is contained in:
@ -14,6 +14,7 @@ namespace Ocelot.Benchmarks
|
||||
private RegExUrlMatcher _urlPathMatcher;
|
||||
private string _downstreamUrlPath;
|
||||
private string _downstreamUrlPathTemplate;
|
||||
private string _upstreamQuery;
|
||||
|
||||
public UrlPathToUrlPathTemplateMatcherBenchmarks()
|
||||
{
|
||||
@ -33,7 +34,7 @@ namespace Ocelot.Benchmarks
|
||||
[Benchmark(Baseline = true)]
|
||||
public void Baseline()
|
||||
{
|
||||
_urlPathMatcher.Match(_downstreamUrlPath, _downstreamUrlPathTemplate);
|
||||
_urlPathMatcher.Match(_downstreamUrlPath, _upstreamQuery, _downstreamUrlPathTemplate, false);
|
||||
}
|
||||
|
||||
// * Summary *
|
||||
|
Reference in New Issue
Block a user