Explorar el Código

fix(sub) Happ profileEnableRouting button (#6008)

Alexey hace 3 semanas
padre
commit
c87649d9f2
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      internal/sub/controller.go

+ 3 - 2
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)
 	}