From c87649d9f21224a0693b77d76bfa0451c1541eeb Mon Sep 17 00:00:00 2001 From: Alexey <52621276+a-poluyan@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:53:08 +0300 Subject: [PATCH] fix(sub) Happ profileEnableRouting button (#6008) --- internal/sub/controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/sub/controller.go b/internal/sub/controller.go index 28c5c9086..5b32dfd12 100644 --- a/internal/sub/controller.go +++ b/internal/sub/controller.go @@ -12,7 +12,6 @@ import ( "os" "path/filepath" "regexp" - "strconv" "strings" "sync" "time" @@ -711,7 +710,9 @@ func (a *SUBController) ApplyCommonHeaders( } // Advanced (Happ) - c.Writer.Header().Set("Routing-Enable", strconv.FormatBool(profileEnableRouting)) + if profileEnableRouting { + c.Writer.Header().Set("Routing-Enable", "true") + } if profileRoutingRules != "" { c.Writer.Header().Set("Routing", profileRoutingRules) }