mirror of
https://github.com/nspcc-dev/send-fs-neo-org.git
synced 2026-03-01 04:29:27 +00:00
Ensure Content-Type correctness #64
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?
Originally created by @roman-khimov on GitHub (Jan 20, 2025).
Is your feature request related to a problem? Please describe.
I'm always frustrated when frontend returns obscure errors for simple requests. Uploading a binary file can result in
in cases where we know the request will fail in advance. One of such cases is missing/wrong Content-Type.
Describe the solution you'd like
Check Content-Type prior to upload:
nspcc-dev/neofs-oauthz@678efff061/bearer/bearer.go (L56)application/octet-streamtype which works fine for most purposesDescribe alternatives you've considered
No alternatives.