mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
Merge pull request #144 from oceanprotocol/fix/url-check-range-fix
Add range error handling
This commit is contained in:
commit
fe0506827f
@ -24,7 +24,8 @@ export class UrlCheckRouter {
|
||||
(error, response) => {
|
||||
if (
|
||||
response &&
|
||||
response.statusCode.toString().startsWith('2')
|
||||
(response.statusCode.toString().startsWith('2') ||
|
||||
response.statusCode.toString().startsWith('416'))
|
||||
) {
|
||||
const result: any = {}
|
||||
result.found = true
|
||||
|
Loading…
Reference in New Issue
Block a user