Skip to content

Commit b1cfbbc

Browse files
committed
allow for missing stream options
1 parent 91ab305 commit b1cfbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/filesystem/file_get_contents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function file_get_contents(url, flags, context, offset, maxLen) {
8282
http_stream = !!http_options;
8383
}
8484

85-
if (!context || http_stream) {
85+
if (!context || !context.stream_options || http_stream) {
8686
var req = this.window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
8787
if (!req) {
8888
throw new Error('XMLHttpRequest not supported');

0 commit comments

Comments
 (0)