X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcheck.ts;h=24f4806af6c8998a074a5952243243793f848477;hb=98418afe2d82b00969267075c227b83c25a29527;hp=28167482cf5060370c6cc2fee0d09e6bd506bf8c;hpb=75d612ce3ca9d6f69fe8e4e83dc3070d9ab56615;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/check.ts b/scripts/check.ts index 28167482c..24f4806af 100755 --- a/scripts/check.ts +++ b/scripts/check.ts @@ -130,7 +130,7 @@ function isThereValidCORSHeaders (res: request.RequestResponse) { console.error(headerAllowMethodsKey + ' is not present.') fail = true } else { - const allowMethodsMissed = findPatternNotInString(headerAllowMethods, [ 'get' ]) + const allowMethodsMissed = findPatternNotInString(headerAllowMethods as string, [ 'get' ]) if (allowMethodsMissed !== null) { console.error(headerAllowMethodsKey + ' misses the ' + allowMethodsMissed + ' method.') fail = true @@ -147,7 +147,7 @@ function isThereValidCORSHeaders (res: request.RequestResponse) { const headersThatShouldBePresent = [ 'Range' ] - const allowHeadersMissed = findPatternNotInString(headerAllowHeaders, headersThatShouldBePresent) + const allowHeadersMissed = findPatternNotInString(headerAllowHeaders as string, headersThatShouldBePresent) if (allowHeadersMissed !== null) { console.error(headerAllowHeadersKey + ' misses the ' + allowHeadersMissed + ' header.') fail = true