Skip to content

Commit 309738c

Browse files
authored
Fix url key of createFileOutput options for streaming
1 parent 5ccf9f3 commit 309738c

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
@@ -93,7 +93,7 @@ function createReadableStream({ url, fetch, options = {} }) {
9393
typeof data === "string" &&
9494
(data.startsWith("https:") || data.startsWith("data:"))
9595
) {
96-
data = createFileOutput({ data, fetch });
96+
data = createFileOutput({ url: data, fetch });
9797
}
9898
controller.enqueue(new ServerSentEvent(event.event, data, event.id));
9999

0 commit comments

Comments
 (0)