From 5b541ac5e5d296a9fc8416a25f2f8731a8437bcd Mon Sep 17 00:00:00 2001 From: Harsh Singh Date: Wed, 27 Sep 2023 15:51:18 +0530 Subject: [PATCH] debugs --- src/commands/upload.rs | 2 ++ src/vercel/artifact.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/upload.rs b/src/commands/upload.rs index 5aa4009..6206404 100644 --- a/src/commands/upload.rs +++ b/src/commands/upload.rs @@ -45,9 +45,11 @@ pub async fn upload( println!("Cache dir hash: {:?}", cache_dir_hash); let mut build_put_req = remote_client.put(build_archive_hash, None)?; + println!("Uploading build"); build_put_req.buffer(&mut build_archive_buf, build_archive_size).await?; let mut cache_put_req = remote_client.put(cache_dir_hash, None)?; + println!("Uploading Cache"); let res = cache_put_req.buffer(&mut cache_archive_buf, cache_archive_size).await?; println!("Response: {:?}", res); diff --git a/src/vercel/artifact.rs b/src/vercel/artifact.rs index 85268de..9e3b459 100644 --- a/src/vercel/artifact.rs +++ b/src/vercel/artifact.rs @@ -49,7 +49,7 @@ impl RequestHeaders for ArtifactBaseRequest { if method == "PUT" { headers.insert( reqwest::header::CONTENT_TYPE, - reqwest::header::HeaderValue::from_static("application/gzip"), + reqwest::header::HeaderValue::from_static("application/octet-stream"), ); if let Some(content_len) = content_len {