From e608670775934915297669926b7033b934cabbc6 Mon Sep 17 00:00:00 2001 From: MaryamZi Date: Sat, 13 Aug 2022 16:27:36 +0530 Subject: [PATCH] Fix overwriting CSV array --- csv_processor.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_processor.bal b/csv_processor.bal index d5d988a..5829f70 100644 --- a/csv_processor.bal +++ b/csv_processor.bal @@ -14,7 +14,7 @@ function handleCSVBodyParts(http:Request request) returns string[][]|error { string baseType = mediaType.getBaseType(); if ("text/csv" == baseType) { byte[] payload = check bodyPart.getByteArray(); - csvLines = check getCSVData(payload); + csvLines.push(...(check getCSVData(payload))); } else { return error("Invalid base type, not text/csv"); }