1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

add range error handling

This commit is contained in:
Jernej Pregelj 2019-05-27 15:22:01 +02:00
parent 7669545d13
commit 2687c78474

View File

@ -24,7 +24,8 @@ export class UrlCheckRouter {
(error, response) => { (error, response) => {
if ( if (
response && response &&
response.statusCode.toString().startsWith('2') (response.statusCode.toString().startsWith('2') ||
response.statusCode.toString().startsWith('416'))
) { ) {
const result: any = {} const result: any = {}
result.found = true result.found = true