@@ -390,9 +390,8 @@ pub async fn handle_self_profile_raw_download(
390
390
body : self_profile_raw:: Request ,
391
391
ctxt : & SiteCtxt ,
392
392
) -> http:: Response < hyper:: Body > {
393
- let res = handle_self_profile_raw ( body, ctxt) . await ;
394
- let ( url, is_tarball) = match res {
395
- Ok ( v) => ( v. url , v. is_tarball ) ,
393
+ let url = match handle_self_profile_raw ( body, ctxt) . await {
394
+ Ok ( v) => v. url ,
396
395
Err ( e) => {
397
396
let mut resp = http:: Response :: new ( e. into ( ) ) ;
398
397
* resp. status_mut ( ) = StatusCode :: BAD_REQUEST ;
@@ -427,14 +426,9 @@ pub async fn handle_self_profile_raw_download(
427
426
. insert ( hyper:: header:: CONTENT_TYPE , header. pop ( ) . unwrap ( ) ) ;
428
427
server_resp. headers_mut ( ) . insert (
429
428
hyper:: header:: CONTENT_DISPOSITION ,
430
- hyper:: header:: HeaderValue :: from_maybe_shared ( format ! (
431
- "attachment; filename=\" {}\" " ,
432
- if is_tarball {
433
- "self-profile.tar"
434
- } else {
435
- "self-profile.mm_profdata"
436
- }
437
- ) )
429
+ hyper:: header:: HeaderValue :: from_maybe_shared (
430
+ "attachment; filename=\" self-profile.mm_profdata\" " ,
431
+ )
438
432
. expect ( "valid header" ) ,
439
433
) ;
440
434
* server_resp. status_mut ( ) = StatusCode :: OK ;
@@ -615,7 +609,6 @@ pub async fn handle_self_profile_raw(
615
609
cids : cids. to_vec ( ) ,
616
610
cid,
617
611
url,
618
- is_tarball : false ,
619
612
} )
620
613
}
621
614
}
0 commit comments