File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export class FilesRouter {
106
106
}
107
107
108
108
function isFileStreamable ( req , filesController ) {
109
- if ( req . get [ 'Range' ] ) {
109
+ if ( req . get ( 'Range' ) ) {
110
110
if ( ! ( typeof filesController . adapter . getFileStream === 'function' ) ) {
111
111
return false ;
112
112
}
@@ -124,7 +124,7 @@ function isFileStreamable(req, filesController){
124
124
function handleFileStream ( stream , req , res , contentType ) {
125
125
var buffer_size = 1024 * 1024 ; //1024Kb
126
126
// Range request, partiall stream the file
127
- var parts = req . get [ " Range" ] . replace ( / b y t e s = / , "" ) . split ( "-" ) ;
127
+ var parts = req . get ( ' Range' ) . replace ( / b y t e s = / , "" ) . split ( "-" ) ;
128
128
var partialstart = parts [ 0 ] ;
129
129
var partialend = parts [ 1 ] ;
130
130
var start = partialstart ? parseInt ( partialstart , 10 ) : 0 ;
You can’t perform that action at this time.
0 commit comments