mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-17 22:23:21 +08:00
Merge branch 'release/13.2.1'
This commit is contained in:
commit
4ee63040b9
@ -144,7 +144,6 @@ namespace Ocelot.DependencyInjection
|
||||
Services.AddWebEncoders();
|
||||
}
|
||||
|
||||
|
||||
public IOcelotBuilder AddSingletonDefinedAggregator<T>()
|
||||
where T : class, IDefinedAggregator
|
||||
{
|
||||
@ -171,7 +170,8 @@ namespace Ocelot.DependencyInjection
|
||||
if (global)
|
||||
{
|
||||
Services.AddTransient<THandler>();
|
||||
Services.AddTransient<GlobalDelegatingHandler>(s =>{
|
||||
Services.AddTransient<GlobalDelegatingHandler>(s =>
|
||||
{
|
||||
var service = s.GetService<THandler>();
|
||||
return new GlobalDelegatingHandler(service);
|
||||
});
|
||||
|
@ -37,7 +37,6 @@ namespace Ocelot.Middleware.Multiplexer
|
||||
|
||||
var content = await contexts[0].DownstreamResponse.Content.ReadAsStringAsync();
|
||||
contentBuilder.Append($"\"{responseKeys[k]}\":{content}");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user