fix(http): handle status code 204 to use js null fix #2580 (#2636)

* fix(http): handle status code 204 to use javascript null

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
asomethings
2025-04-18 21:53:25 +09:00
committed by GitHub
parent 4bb51b3cc8
commit ff384cbabe
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ export async function fetch(
}
})
const res = new Response(readableStreamBody, {
const res = new Response(status !== 204 ? readableStreamBody : null, {
status,
statusText
})