Skip to content

Commit

Permalink
add uplaod reader client method
Browse files Browse the repository at this point in the history
  • Loading branch information
robatipoor committed Feb 29, 2024
1 parent 53559ac commit ce3449d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/tests/cli/upload_and_download_cli_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async fn test_upload_and_download_command(ctx: &mut CliTestContext) {
&ctx.server_addr,
"download",
"--url-path",
&url_path.to_string(),
url_path,
"--destination",
destination_dir.to_str().unwrap(),
])
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl PasteFileClient {
let file_part =
reqwest::multipart::Part::stream(reqwest::Body::wrap_stream(ReaderStream::new(reader)))
.file_name(file_name.clone())
.mime_str(&content_type)?;
.mime_str(content_type)?;
self.upload_file_part(file_part, query, auth).await
}

Expand Down

0 comments on commit ce3449d

Please sign in to comment.