Skip to content

Commit f5131f6

Browse files
committed
Fix: make get_fragment status code always return 200 if success to prevent loop request
1 parent 5a3a7f4 commit f5131f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/commands/methods/watch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ pub async fn get_fragment(url: String, headers: Headers) -> Result<Response, Str
232232
info!("[get_fragment] status: {}", res_status);
233233

234234
return Ok(Response {
235-
status: res_status as usize,
235+
status: 200,
236236
url: url,
237237
data:data.to_vec(),
238238
});

0 commit comments

Comments
 (0)