mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 17:28:16 +08:00
#330 Fix and issue with the httpclient being cached on the url but not taking the http verb into accont. This caused an issue because if the same url but different verbs had handlers, the incorrect handler would be called (#331)
This commit is contained in:
@ -97,7 +97,11 @@ namespace Ocelot.Requester
|
||||
|
||||
private string GetCacheKey(DownstreamContext request)
|
||||
{
|
||||
return request.DownstreamRequest.OriginalString;
|
||||
var cacheKey = $"{request.DownstreamRequest.Method}:{request.DownstreamRequest.OriginalString}";
|
||||
|
||||
this._logger.LogDebug($"Cache key for request is {cacheKey}");
|
||||
|
||||
return cacheKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user