Runtime proxy override

This commit is contained in:
Rustem Kamalov
2026-04-01 17:38:13 +03:00
parent 3daa48e6a3
commit 3c07c7789a
11 changed files with 252 additions and 42 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ func (s *Server) handleMegaEndpoint(c *fiber.Ctx, action string, run func(Query,
engineNames[i] = engine.Name()
}
engineNamesJoined := strings.Join(engineNames, ",")
s.applyProxyHeaders(c, s.resilient.ResolveMegaProxyMeta(enginesToUse))
s.applyProxyHeaders(c, s.resilient.ResolveMegaProxyMeta(q, enginesToUse))
logrus.Infof("Starting SERP mega %s request using engines: %s for query: %s", action, engineNamesJoined, q.Text)
cacheHitCandidates := []cacheHitCandidate{