We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcfb5c commit 2b47068Copy full SHA for 2b47068
dart/lib/src/sentry_envelope_item_header.dart
@@ -18,8 +18,9 @@ class SentryEnvelopeItemHeader {
18
/// Item header encoded as JSON
19
Future<Map<String, dynamic>> toJson() async {
20
final json = <String, dynamic>{};
21
- if (contentType != null) {
22
- json['content_type'] = contentType!;
+ final tempContentType = contentType;
+ if (tempContentType != null) {
23
+ json['content_type'] = tempContentType;
24
}
25
json['type'] = type.toStringValue();
26
json['length'] = await length();
0 commit comments