瀏覽代碼

fix(sub) Happ profileEnableRouting button (#6008)

Alexey 15 小時之前
父節點
當前提交
c87649d9f2
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      internal/sub/controller.go

+ 3 - 2
internal/sub/controller.go

@@ -12,7 +12,6 @@ import (
 	"os"
 	"os"
 	"path/filepath"
 	"path/filepath"
 	"regexp"
 	"regexp"
-	"strconv"
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 	"time"
 	"time"
@@ -711,7 +710,9 @@ func (a *SUBController) ApplyCommonHeaders(
 	}
 	}
 
 
 	// Advanced (Happ)
 	// Advanced (Happ)
-	c.Writer.Header().Set("Routing-Enable", strconv.FormatBool(profileEnableRouting))
+	if profileEnableRouting {
+		c.Writer.Header().Set("Routing-Enable", "true")
+	}
 	if profileRoutingRules != "" {
 	if profileRoutingRules != "" {
 		c.Writer.Header().Set("Routing", profileRoutingRules)
 		c.Writer.Header().Set("Routing", profileRoutingRules)
 	}
 	}