Skip to content

Commit 51d300b

Browse files
authored
Default to useFileOutput = true for readable streams
1 parent 6a2156d commit 51d300b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ServerSentEvent {
5252
* @returns {ReadableStream<ServerSentEvent> & AsyncIterable<ServerSentEvent>}
5353
*/
5454
function createReadableStream({ url, fetch, options = {} }) {
55-
const { useFileOutput = false, headers = {}, ...initOptions } = options;
55+
const { useFileOutput = true, headers = {}, ...initOptions } = options;
5656

5757
return new ReadableStream({
5858
async start(controller) {

0 commit comments

Comments
 (0)