From 982828a9701583d841aa8512f2bfd7d078bdf2ca Mon Sep 17 00:00:00 2001 From: Ehco1996 Date: Mon, 4 Dec 2023 17:16:44 +0800 Subject: [PATCH] sub: remove filename from headers --- apps/sspanel/models.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/sspanel/models.py b/apps/sspanel/models.py index 5c67b858af..2feda113b2 100644 --- a/apps/sspanel/models.py +++ b/apps/sspanel/models.py @@ -277,11 +277,8 @@ def get_sub_info_header(self): """ expire = int(datetime.datetime.timestamp(self.level_expire_time)) info = f"upload={self.upload_traffic}; download={self.download_traffic}; total={self.total_traffic}; expire={expire}" - filename = slugify(settings.SITE_TITLE) - return { - "Subscription-Userinfo:": info, - "Content-Disposition": f'attachment; filename="{filename}.yaml"', - } + # filename = slugify(settings.SITE_TITLE) + return {"Subscription-Userinfo:": info} def reset_sub_uid(self): self.uid = str(uuid4())