oven-sh/bun

Bun write from empty Response doesn't create any file.

クローズ

#6,827 opened on 2023/10/31

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (4,486 件のフォーク)batch import
bugbun.jsconfirmed buggood first issue

Repository metrics

Stars
 (90,348 個のスター)
PR merge metrics
 (PR metrics pending)

説明

What version of Bun is running?

1.0.8+732650d6a43d235d36a9bf8717766e012f445461

What platform is your computer?

Linux 6.5.9-1-cachyos x86_64 unknown

What steps can reproduce the bug?

Bun.write("ok.txt", new Response(""));

What is the expected behavior?

An empty file ok.txt will be created in the current directory.

What do you see instead?

No file is created.

Additional information

This doesn't happen on passing empty string.

Bun.write("ok.txt", "");

This generates the empty file successfully.

コントリビューターガイド