Update to reqwest 0.11.10

This commit is contained in:
Lucien Greathouse
2022-05-22 19:16:43 -04:00
parent 57005c4fd5
commit eaac539087
4 changed files with 145 additions and 778 deletions

View File

@@ -123,7 +123,7 @@ fn do_upload(buffer: Vec<u8>, asset_id: u64, cookie: &str) -> anyhow::Result<()>
asset_id
);
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
let build_request = move || {
client
@@ -172,10 +172,10 @@ fn do_upload_open_cloud(
universe_id, asset_id
);
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
log::debug!("Uploading to Roblox...");
let mut response = client
let response = client
.post(&url)
.header("x-api-key", api_key)
.header(CONTENT_TYPE, "application/xml")