mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4743] [MERGED] Add Clash subscription profile filename header #5735
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5735
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4743
Author: @xiaoxiyao
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (1)
dd368dafix(sub): Add Clash subscription profile filename header📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
sub/subController.go(+4 -0)📄 Description
Summary
Add a
Content-Dispositionheader to Clash/Mihomo subscription responses when a subscription title is configured.Why
Some Clash clients use the response
Content-Dispositionfilename as the imported profile name. Previously, 3x-ui only returned the configured subscription title throughProfile-Title, so those clients could import the Clash subscription with a generic or URL-derived name.Type of change
Areas affected
How was this tested?
Tested locally with FLClash
Screenshots / recordings
Breaking changes
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.