File tree 1 file changed +2
-2
lines changed
packages/duckdb-wasm/src/bindings
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ export const BROWSER_RUNTIME: DuckDBRuntime & {
308
308
// so we need (if enabled) to bump to a ranged GET
309
309
if ( ! BROWSER_RUNTIME . getGlobalFileInfo ( mod ) ?. allowFullHttpReads ) {
310
310
failWith ( mod , `HEAD request failed: ${ path } , with full http reads are disabled` ) ;
311
- return ;
311
+ return 0 ;
312
312
}
313
313
const xhr2 = new XMLHttpRequest ( ) ;
314
314
if ( path . startsWith ( 's3://' ) ) {
@@ -322,7 +322,7 @@ export const BROWSER_RUNTIME: DuckDBRuntime & {
322
322
xhr2 . send ( null ) ;
323
323
if ( xhr2 . status != 200 && xhr2 . status !== 206 ) {
324
324
failWith ( mod , `HEAD and GET requests failed: ${ path } ` ) ;
325
- return ;
325
+ return 0 ;
326
326
}
327
327
const contentLength = xhr2 . getResponseHeader ( 'Content-Length' ) ;
328
328
if ( contentLength && ( + contentLength > 1 ) ) {
You can’t perform that action at this time.
0 commit comments