getsentry / sentry-native

Sentry SDK for C, C++ and native applications.
MIT License
391 stars 165 forks source link

Wrong MIME type is sent for attachment #1031

Open dalnoki opened 3 weeks ago

dalnoki commented 3 weeks ago

Description

The SDK set the 'application/octet-stream' MIME Type for a .txt file, please see details in the JIRA ticket: https://getsentry.atlassian.net/browse/FEEDBACK-2259

When does the problem happen

Environment

Steps To Reproduce

Log output

kahest commented 2 weeks ago

related:

supervacuus commented 2 weeks ago

The web-ui auto-detects the MIME type of attachments when no content-type header is sent with the attachment, which is why we don't do any MIME detection in the SDK.

Since version 0.7.2, user-supplied attachments should not be sent with a content-type header when using crashpad (i.e., also not application/octet-stream). We never sent a content type for all other backends.