Commit 8b193be
fix: RFC 5987 encoding for Unicode filenames in Content-Disposition header (#257)
* fix: RFC 5987 encoding for Unicode filenames in Content-Disposition header
Fixes download failures for songs with non-ASCII characters (Vietnamese,
Japanese, Korean, etc.) by properly encoding the Content-Disposition header.
The issue occurred when downloading separated audio files with Unicode
filenames like "Việt Nhân - Sầu Thương_(Vocals).flac" - the HTTP header
encoding failed with "'latin-1' codec can't encode character".
Solution:
- Add ASCII fallback filename for older clients
- Add RFC 5987 filename*=UTF-8'' parameter for modern clients
- Both parameters in the header ensure broad compatibility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: bump version to 0.41.1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 76141c8 commit 8b193be
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
715 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
716 | 723 | | |
717 | 724 | | |
718 | 725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments