mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-18 02:00:58 +00:00
fixed gzip compression file name forwarding once more
Change-Id: I4e683d3f88f7a4fa1adbcbf0930e7330d4481786
This commit is contained in:
1 parent
308b047cbc
commit
846b682d1d
1 file changed
+4
-4
+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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user