add range error handling

This commit is contained in:
Jernej Pregelj 2019-05-27 15:22:01 +02:00
parent 7669545d13
commit 2687c78474
1 changed files with 2 additions and 1 deletions

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