Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2025-09-14 20:44:26 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2025-09-14 20:44:26 +0300
commit3ac1d7f5460b4e89d8057c27d7772bd34519269d (patch)
tree09d4595fe1dbb58e9c5ec2abb13ab9fe718a52ef /sub/subService.go
parent10025ffa66c011fd756af780772260d833460795 (diff)
enhancements
Diffstat (limited to 'sub/subService.go')
-rw-r--r--sub/subService.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/sub/subService.go b/sub/subService.go
index 485048fd..a47cb6be 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -1178,15 +1178,3 @@ func parseInt64(s string) (int64, error) {
n, err := strconv.ParseInt(s, 10, 64)
return n, err
}
-
-// ApplyCommonHeaders sets standard subscription headers on the response writer.
-func (s *SubService) ApplyCommonHeaders(c *gin.Context, header, updateInterval, profileTitle string) {
- c.Writer.Header().Set("Subscription-Userinfo", header)
- c.Writer.Header().Set("Profile-Update-Interval", updateInterval)
- c.Writer.Header().Set("Profile-Title", "base64:"+base64.StdEncoding.EncodeToString([]byte(profileTitle)))
-}
-
-// ApplyBase64ContentHeader adds the full subscription content as base64 header for convenience.
-func (s *SubService) ApplyBase64ContentHeader(c *gin.Context, content string) {
- c.Writer.Header().Set("Subscription-Content-Base64", base64.StdEncoding.EncodeToString([]byte(content)))
-}