Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: enforce Content-Type to accept only binary responses#174

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fioan89 merged 3 commits intomainfromfix-enforce-content-type-when-downloading-cli
Aug 14, 2025

Conversation

fioan89
Copy link
Collaborator

Add validation for CLI downloads that ensures the Content-Type header is indicating a binary stream (application/octet-stream), including common variants with parameters. This prevents saving unexpected HTML or other non-binary responses (e.g., from frontend dev servers on :8080) as binaries, improving reliability and providing clearer error feedback.

Add validation for CLI downloads that ensures the Content-Type headeris indicating a binary stream (`application/octet-stream`),including common variants with parameters. This prevents saving unexpectedHTML or other non-binary responses (e.g., from frontend dev servers on :8080)as binaries, improving reliability and providing clearer error feedback.
@fioan89
Copy link
CollaboratorAuthor

fioan89 commentedAug 12, 2025
edited
Loading

image

I think this provides a better message compared to the previous message which hided the actual issue (html page downloaded into a file with the name of the cli, with the fake cli failing to execute)

which now expect Content-Type to be present on the response
Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice!

@fioan89fioan89 merged commita923f58 intomainAug 14, 2025
6 checks passed
@fioan89fioan89 deleted the fix-enforce-content-type-when-downloading-cli branchAugust 14, 2025 19:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@code-ashercode-ashercode-asher approved these changes

@matifalimatifaliAwaiting requested review from matifali

@f0sself0sselAwaiting requested review from f0ssel

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@fioan89@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp