oven-sh/bun

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

已关闭

#6,827 创建于 2023年10月31日

 (2 条评论) (1 个反应) (0 位负责人)Rust (4,486 个派生)batch import
bugbun.jsconfirmed buggood first issue

仓库指标

星标
 (90,348 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南