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 {
106106}
107107
108108function isFileStreamable ( req , filesController ) {
109- if ( req . get [ 'Range' ] ) {
109+ if ( req . get ( 'Range' ) ) {
110110 if ( ! ( typeof filesController . adapter . getFileStream === 'function' ) ) {
111111 return false ;
112112 }
@@ -124,7 +124,7 @@ function isFileStreamable(req, filesController){
124124function handleFileStream ( stream , req , res , contentType ) {
125125 var buffer_size = 1024 * 1024 ; //1024Kb
126126 // 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 ( "-" ) ;
128128 var partialstart = parts [ 0 ] ;
129129 var partialend = parts [ 1 ] ;
130130 var start = partialstart ? parseInt ( partialstart , 10 ) : 0 ;
You can’t perform that action at this time.
0 commit comments