fixed gzip compression file name forwarding once more

Change-Id: I4e683d3f88f7a4fa1adbcbf0930e7330d4481786
This commit is contained in:
Axel Uhl committed 2017-11-22 12:25:00 +01:00
1 parent 308b047cbc
commit 846b682d1d
1 file changed
+4 -4
@@ -105,14 +105,14 @@ public class BravoWindImportServlet extends AbstractWindImportServlet {
}
}
} else {
final String sourceName;
final String actualFileName;
if (filename.toLowerCase().endsWith(GZIP_SUFFIX)) {
inputStream = new GZIPInputStream(inputStream);
sourceName = filename.substring(0, filename.length()-GZIP_SUFFIX.length());
actualFileName = filename.substring(0, filename.length()-GZIP_SUFFIX.length());
} else {
sourceName = filename;
actualFileName = filename;
}
importer.importFixes(inputStream, callback, filename, sourceName, /* downsample */ false);
importer.importFixes(inputStream, callback, actualFileName, BRAVO_WIND_IMPORT, /* downsample */ false);
}
return result;
}