增加 useManifestAsEntry 配置支持 || Increase the useManifestAsEntry configuration support (#2499)

Co-authored-by: rinfx <yucheng.lxr@alibaba-inc.com>
This commit is contained in:
mamba
2025-07-09 11:53:56 +08:00
committed by GitHub
parent ff068258a1
commit da2ae4c7ee
5 changed files with 190 additions and 18 deletions

View File

@@ -304,7 +304,10 @@ func GetConditionRules(rules []*config.GrayRule, grayKeyValue string, cookie str
}
func GetGrayWeightUniqueId(cookie string, uniqueGrayTag string) string {
uniqueId := GetCookieValue(cookie, uniqueGrayTag)
uniqueId, _ := proxywasm.GetHttpRequestHeader(uniqueGrayTag)
if uniqueId == "" {
uniqueId = GetCookieValue(cookie, uniqueGrayTag)
}
if uniqueId == "" {
uniqueId = strings.ReplaceAll(uuid.NewString(), "-", "")
}