fix urlCheck crash
This commit is contained in:
parent
552ab091e5
commit
1ab7e17e39
|
@ -22,7 +22,7 @@ export class UrlCheckRouter {
|
|||
headers: { Range: 'bytes=0-' }
|
||||
},
|
||||
(error, response) => {
|
||||
if (response.statusCode.toString().startsWith('2')) {
|
||||
if (response && response.statusCode.toString().startsWith('2')) {
|
||||
const result: any = {}
|
||||
result.found = true
|
||||
|
||||
|
|
Loading…
Reference in New Issue