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"); }