@@ -517,7 +517,7 @@ impl<'a, C, NC, A> ArchiveInsertCall<'a, C, NC, A> where NC: hyper::net::Network
517517
518518
519519 let mut should_ask_dlg_for_url = false ;
520- let mut upload_url_from_server = true ;
520+ let mut upload_url_from_server;
521521 let mut upload_url: Option < String > = None ;
522522
523523 loop {
@@ -529,7 +529,8 @@ impl<'a, C, NC, A> ArchiveInsertCall<'a, C, NC, A> where NC: hyper::net::Network
529529 dlg. finished ( false ) ;
530530 return Result :: MissingToken
531531 }
532- let auth_header = Authorization ( "Bearer " . to_string ( ) + & token. unwrap ( ) . access_token ) ;
532+ let auth_header = Authorization ( oauth2:: Scheme { token_type : oauth2:: TokenType :: Bearer ,
533+ access_token : token. unwrap ( ) . access_token } ) ;
533534 let mut req_result = {
534535 if should_ask_dlg_for_url && ( upload_url = dlg. upload_url ( ) ) == ( ) && upload_url. is_some ( ) {
535536 should_ask_dlg_for_url = false ;
@@ -608,7 +609,7 @@ impl<'a, C, NC, A> ArchiveInsertCall<'a, C, NC, A> where NC: hyper::net::Network
608609 delegate : dlg,
609610 auth : & mut * self . hub . auth . borrow_mut ( ) ,
610611 user_agent : & self . hub . _user_agent ,
611- auth_token : auth_header. 0 . clone ( ) ,
612+ auth_header : auth_header. clone ( ) ,
612613 url : url,
613614 reader : & mut reader,
614615 media_type : reader_mime_type. clone ( ) ,
0 commit comments