mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
fix HttpRequesterMiddleware does not call next bug (#830)
call next so that we can do something with the response, such as add some custom header etc...
This commit is contained in:
parent
e281f1b3fb
commit
e46467ae3c
@ -33,6 +33,8 @@ namespace Ocelot.Requester.Middleware
|
|||||||
Logger.LogDebug("setting http response message");
|
Logger.LogDebug("setting http response message");
|
||||||
|
|
||||||
context.DownstreamResponse = new DownstreamResponse(response.Data);
|
context.DownstreamResponse = new DownstreamResponse(response.Data);
|
||||||
|
|
||||||
|
await _next.Invoke(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user