mirror of
https://github.com/alibaba/higress.git
synced 2026-05-23 12:17:30 +08:00
optimize retry&failover logic (#1903)
This commit is contained in:
@@ -107,11 +107,6 @@ func createContextCache(providerConfig *ProviderConfig) *contextCache {
|
||||
}
|
||||
|
||||
func (c *contextCache) GetContextFromFile(ctx wrapper.HttpContext, provider Provider, body []byte, log wrapper.Log) error {
|
||||
// get context will overwrite the original request host and path
|
||||
// save the original request host and path in case they are needed for apiToken health check
|
||||
ctx.SetContext(ctxRequestHost, wrapper.GetRequestHost())
|
||||
ctx.SetContext(ctxRequestPath, wrapper.GetRequestPath())
|
||||
|
||||
if c.loaded {
|
||||
log.Debugf("context file loaded from cache")
|
||||
insertContext(provider, c.content, nil, body, log)
|
||||
|
||||
Reference in New Issue
Block a user