mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
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
Block a user