@@ -21,8 +21,7 @@ use zstd::stream::Decoder as ZstdDecoder;
2121
2222use crate :: constants:: { ITEM_NAME_BREADCRUMBS1 , ITEM_NAME_BREADCRUMBS2 , ITEM_NAME_EVENT } ;
2323use crate :: endpoints:: common:: { self , BadStoreRequest , TextResponse , upload_to_objectstore} ;
24- use crate :: envelope:: ContentType :: Minidump ;
25- use crate :: envelope:: { AttachmentType , Envelope , Item , ItemType } ;
24+ use crate :: envelope:: { AttachmentType , ContentType , Envelope , Item , ItemType } ;
2625use crate :: extractors:: { RawContentType , RequestMeta } ;
2726use crate :: managed:: { Managed , ManagedResult } ;
2827use crate :: middlewares;
@@ -299,7 +298,7 @@ async fn multipart_to_envelope(
299298
300299 items. try_modify ( |items, records| -> Result < ( ) , BadStoreRequest > {
301300 let minidump_item = & mut items[ minidump_idx] ;
302- minidump_item. set_payload ( Minidump , payload) ;
301+ minidump_item. set_payload ( ContentType :: Minidump , payload) ;
303302 records. lenient ( DataCategory :: Attachment ) ; // decoding the minidump changes its size
304303 if let Some ( minidump_filename) = minidump_item. filename ( ) {
305304 minidump_item. set_filename ( remove_container_extension ( minidump_filename) . to_owned ( ) )
@@ -418,7 +417,7 @@ async fn raw_minidump_to_envelope(
418417 let minidump_data = request. extract ( ) . await ?;
419418 item. try_modify ( |inner, records| -> Result < ( ) , BadStoreRequest > {
420419 let payload = decode_minidump ( minidump_data, state. config ( ) . max_attachment_size ( ) ) ?;
421- inner. set_payload ( Minidump , payload) ;
420+ inner. set_payload ( ContentType :: Minidump , payload) ;
422421 records. lenient ( DataCategory :: Attachment ) ; // decoding the minidump changes its size
423422 validate_minidump ( & inner. payload ( ) ) ?;
424423 Ok ( ( ) )
0 commit comments