From 3ac1d7f5460b4e89d8057c27d7772bd34519269d Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 14 Sep 2025 19:44:26 +0200 Subject: enhancements --- sub/subService.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sub/subService.go') 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))) -} -- cgit v1.2.3