mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 07:18:16 +08:00
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user