Skip to content

Commit

Permalink
sub: remove filename from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Dec 4, 2023
1 parent 19f5e66 commit 982828a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/sspanel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 982828a

Please sign in to comment.