sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Only delete envelopes when receiving HTTP status code 200

Open philipphofmann opened this issue 1 year ago • 0 comments

Description

The HTTPTransport only checks if we receive any type of response from the server and then deletes the envelopes. Instead, it should only delete the envelope when receiving a 200, as Java does and as the develop docs recommend.

https://github.com/getsentry/sentry-cocoa/blob/324f8b0085d0892f899f38bb015140f8195f9544/Sources/Sentry/SentryHttpTransport.m#L372-L394

philipphofmann avatar Oct 18 '24 09:10 philipphofmann