1
0
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:
Matthias Kretschmann 2019-05-27 15:30:54 +02:00 committed by GitHub
commit fe0506827f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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