Skip to content

Commit

Permalink
debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Sep 27, 2023
1 parent 95099c0 commit 5b541ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/commands/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/vercel/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b541ac

Please sign in to comment.