File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ describe('::Tus', () => {
1515 app . use ( basePath , tus ( opts ) ) ;
1616
1717 function exposedHeaders ( response : request . Response ) : string [ ] {
18- return response
19- . get ( 'Access-Control-Expose-Headers' )
18+ return ( response . get ( 'Access-Control-Expose-Headers' ) || '' )
2019 . split ( ',' )
2120 . map ( s => s . toLowerCase ( ) ) ;
2221 }
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ describe('::Uploadx', () => {
3434 app . use ( path1 , uploadx ( opts ) ) ;
3535 app . use ( path2 , uploadx2 . handle ) ;
3636 function exposedHeaders ( response : request . Response ) : string [ ] {
37- return response
38- . get ( 'Access-Control-Expose-Headers' )
37+ return ( response . get ( 'Access-Control-Expose-Headers' ) || '' )
3938 . split ( ',' )
4039 . map ( s => s . toLowerCase ( ) ) ;
4140 }
You can’t perform that action at this time.
0 commit comments