diff --git a/src/main/java/au/org/ala/biocache/service/DownloadService.java b/src/main/java/au/org/ala/biocache/service/DownloadService.java index 2da0a88f1..753b00a10 100644 --- a/src/main/java/au/org/ala/biocache/service/DownloadService.java +++ b/src/main/java/au/org/ala/biocache/service/DownloadService.java @@ -822,8 +822,7 @@ public void getHeadings(DownloadHeaders downloadHeaders, OutputStream out, String[] headerOutput = downloadHeaders.joinedHeader(); if (fieldsRequested != null && headerOutput != null) { - // ignore first fieldsRequested and headerOutput record - for (int i = 1; i < fieldsRequested.length && i < headerOutput.length; i++) { + for (int i = 0; i < fieldsRequested.length && i < headerOutput.length; i++) { // find indexedField by download name IndexFieldDTO ifdto = null;