Remove already commented-out code & dbg prints
This commit is contained in:
@@ -147,7 +147,6 @@ async fn do_upload_release(
|
|||||||
.post(request_url)
|
.post(request_url)
|
||||||
.header(USER_AGENT, "gt-tools-test-agent")
|
.header(USER_AGENT, "gt-tools-test-agent")
|
||||||
.header(ACCEPT, "application/json")
|
.header(ACCEPT, "application/json")
|
||||||
// .header("Content-Type", "multipart/form-data")
|
|
||||||
.header("Authorization", format!("token {}", token));
|
.header("Authorization", format!("token {}", token));
|
||||||
|
|
||||||
// Ensure all files exists before starting the uploads
|
// Ensure all files exists before starting the uploads
|
||||||
@@ -169,11 +168,9 @@ async fn do_upload_release(
|
|||||||
|
|
||||||
let request = request
|
let request = request
|
||||||
.multipart(form)
|
.multipart(form)
|
||||||
.query(&[("name", file.split("/").last())]);
|
.query(&[("name", file.split("/").last())])
|
||||||
dbg!(&request);
|
.send()
|
||||||
let response = request.send().await?;
|
.await?;
|
||||||
dbg!(&response);
|
|
||||||
dbg!(&response.text().await?);
|
|
||||||
} else {
|
} else {
|
||||||
panic!("Failed to clone the RequestBuilder during file upload loop.");
|
panic!("Failed to clone the RequestBuilder during file upload loop.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user