aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/check.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check.ts')
-rwxr-xr-xscripts/check.ts4
1 files changed, 2 insertions, 2 deletions
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) {
130 console.error(headerAllowMethodsKey + ' is not present.') 130 console.error(headerAllowMethodsKey + ' is not present.')
131 fail = true 131 fail = true
132 } else { 132 } else {
133 const allowMethodsMissed = findPatternNotInString(headerAllowMethods, [ 'get' ]) 133 const allowMethodsMissed = findPatternNotInString(headerAllowMethods as string, [ 'get' ])
134 if (allowMethodsMissed !== null) { 134 if (allowMethodsMissed !== null) {
135 console.error(headerAllowMethodsKey + ' misses the ' + allowMethodsMissed + ' method.') 135 console.error(headerAllowMethodsKey + ' misses the ' + allowMethodsMissed + ' method.')
136 fail = true 136 fail = true
@@ -147,7 +147,7 @@ function isThereValidCORSHeaders (res: request.RequestResponse) {
147 const headersThatShouldBePresent = [ 147 const headersThatShouldBePresent = [
148 'Range' 148 'Range'
149 ] 149 ]
150 const allowHeadersMissed = findPatternNotInString(headerAllowHeaders, headersThatShouldBePresent) 150 const allowHeadersMissed = findPatternNotInString(headerAllowHeaders as string, headersThatShouldBePresent)
151 if (allowHeadersMissed !== null) { 151 if (allowHeadersMissed !== null) {
152 console.error(headerAllowHeadersKey + ' misses the ' + allowHeadersMissed + ' header.') 152 console.error(headerAllowHeadersKey + ' misses the ' + allowHeadersMissed + ' header.')
153 fail = true 153 fail = true