mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 19:58:14 +08:00
test to show returning 304 works (#450)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user