Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Default to useFileOutput = true for readable streams
  • Loading branch information
mattt authored Sep 25, 2024
commit 51d300b96b086a33ed3e3d41ba202eb5bd1f2430
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ServerSentEvent {
* @returns {ReadableStream<ServerSentEvent> & AsyncIterable<ServerSentEvent>}
*/
function createReadableStream({ url, fetch, options = {} }) {
const { useFileOutput = false, headers = {}, ...initOptions } = options;
const { useFileOutput = true, headers = {}, ...initOptions } = options;

return new ReadableStream({
async start(controller) {
Expand Down