#473 dont remove query string param (#481)

This commit is contained in:
Tom Pallister
2018-07-20 23:10:59 +01:00
committed by GitHub
parent 5e91d30352
commit 7dbfc46e7b
2 changed files with 42 additions and 1 deletions

View File

@ -52,7 +52,15 @@ namespace Ocelot.DownstreamUrlCreator.Middleware
if(ContainsQueryString(dsPath))
{
context.DownstreamRequest.AbsolutePath = GetPath(dsPath);
context.DownstreamRequest.Query = GetQueryString(dsPath);
if (string.IsNullOrEmpty(context.DownstreamRequest.Query))
{
context.DownstreamRequest.Query = GetQueryString(dsPath);
}
else
{
context.DownstreamRequest.Query += GetQueryString(dsPath).Replace('?', '&');
}
}
else
{