]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/check.ts
Fix tree comment rendering
[github/Chocobozzz/PeerTube.git] / scripts / check.ts
index 28167482cf5060370c6cc2fee0d09e6bd506bf8c..24f4806af6c8998a074a5952243243793f848477 100755 (executable)
@@ -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