Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 下载后缀名为octet-stream #31

Closed
blindlight86 opened this issue Mar 11, 2024 · 1 comment · Fixed by #33
Closed

[BUG] 下载后缀名为octet-stream #31

blindlight86 opened this issue Mar 11, 2024 · 1 comment · Fixed by #33

Comments

@blindlight86
Copy link

描述出现的问题

下载后缀名为octet-stream

hanime1提供了错误的的Content-Type,如:https://hanime1.me/watch?v=85831
Content-Type: application/octet-stream

看代码中直接使用了网站提供的Content-Type

ext := strings.Split(resp.Header.Get("Content-Type"), "/")[1]

@blindlight86 blindlight86 changed the title [BUG] [BUG] 下载后缀名为octet-stream Mar 11, 2024
@dreamjz
Copy link
Member

dreamjz commented Mar 12, 2024

Thank you for your report.

I'll fix it in next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants