mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(cmn): implement query_transfer_status()
The delegate logic is implemented and seems sound. It's somewhat funny that after all this back and forth, all we get is a valid start position for the upload.
This commit is contained in:
@@ -765,7 +765,7 @@ else {
|
||||
let mut json_err = String::new();
|
||||
res.read_to_string(&mut json_err).unwrap();
|
||||
let error_info: cmn::JsonServerError = json::from_str(&json_err).unwrap();
|
||||
if let oauth2::Retry::After(d) = dlg.http_failure(&res, error_info) {
|
||||
if let oauth2::Retry::After(d) = dlg.http_failure(&res, Some(error_info)) {
|
||||
sleep(d);
|
||||
continue;
|
||||
}
|
||||
@@ -785,6 +785,7 @@ else {
|
||||
cmn::ResumableUploadHelper {
|
||||
client: &mut client.borrow_mut(),
|
||||
delegate: dlg,
|
||||
start_at: if upload_url_from_server { Some(0) } else { None },
|
||||
auth: &mut *self.hub.auth.borrow_mut(),
|
||||
user_agent: &self.hub._user_agent,
|
||||
auth_header: auth_header.clone(),
|
||||
|
||||
Reference in New Issue
Block a user