mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-09-19 11:42:41 +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