Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 30, 2024
1 parent b6d9ba9 commit edfa6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub async fn stream_fetch(
url.parse::<reqwest::Url>().map_err(|err| format!("failed to parse url: {}", err))?
);

if method == reqwest::Method::POST {
if method == reqwest::Method::POST || method == reqwest::Method::PUT || method == reqwest::Method::PATCH {
let body = bytes::Bytes::from(body);
// println!("body: {:?}", body);
request = request.body(body);
Expand Down

0 comments on commit edfa6d1

Please sign in to comment.