test to show returning 304 works (#450)

This commit is contained in:
Tom Pallister
2018-07-08 15:02:35 +01:00
committed by GitHub
parent 85efcf0787
commit d604badd49
3 changed files with 105 additions and 0 deletions

View File

@ -38,6 +38,11 @@ namespace Ocelot.Headers.Middleware
await _next.Invoke(context);
if(context.IsError)
{
return;
}
var postFAndRs = context.DownstreamReRoute.DownstreamHeadersFindAndReplace;
_postReplacer.Replace(context.DownstreamResponse, postFAndRs, context.DownstreamRequest);