diff --git a/src/upload_csv.html b/src/upload_csv.html index 5a7793fbaf8071d661cf6f9f92b6aa7ec4337353..428a7b667c5c0f33433f67ae363c1abac133a79b 100644 --- a/src/upload_csv.html +++ b/src/upload_csv.html @@ -178,8 +178,10 @@ } for (let i = 0; i < expectedHeaders.length; i++) { - if (headers[i] !== expectedHeaders[i]) { + if (headers[i].trim() !== expectedHeaders[i]) { reject(new Error(`The header at position ${i+1} does not match the expected header.`)); + console.log(headers[i]); + console.log(expectedHeaders[i]); } }