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

Regression fix: binary declared type should fall back to filename extension type #99

Conversation

jeremy
Copy link
Member

@jeremy jeremy commented Mar 1, 2024

The application/octet-stream content type is treated as a default rather than a specific declaration. We should check the filename extension for the more specific type in this case. If there's no extension, the type falls back to binary anyway.

Fixes regression in 1.0.2 → 1.0.3 introduced by #94.

…ension type

The application/octet-stream content type is treated as a default rather
than a specific declaration. We should check the filename extension for
the more specific type in this case. If there's no extension, the type
falls back to binary anyway.

Fixes regression in 1.0.2 -> 1.0.3 introduced by #94.
@jeremy jeremy merged commit 2afc1a1 into main Mar 1, 2024
18 of 19 checks passed
@jeremy jeremy deleted the binary-declared-type-should-fall-back-to-filename-extension-type branch March 1, 2024 16:55
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 this pull request may close these issues.

1 participant