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:
liweihan 2019-03-22 20:25:05 +08:00 committed by Thiago Loureiro
parent e281f1b3fb
commit e46467ae3c

View File

@ -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);
} }
} }
} }