Skip to content

Commit 08ea2c5

Browse files
committed
cleanup fix for filestream content-length bug
1 parent 4e8612b commit 08ea2c5

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

workspace-server/src/main/java/gov/nasa/jpl/aerie/workspace/server/WorkspaceBindings.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,10 @@ private void get(Context context) throws NoSuchWorkspaceException {
235235

236236
try {
237237
final var fileStream = workspaceService.loadFile(pathInfo.workspaceId, pathInfo.filePath());
238-
// final var fileReader = new BufferedInputStream(fileStream.readingStream());
239-
logger.warn("using inputStream");
240238
final var inputStream = fileStream.readingStream();
241239
context.header("x-render-type", workspaceService.getFileType(pathInfo.filePath).name());
242240
context.contentType(ContentType.OCTET_STREAM);
243241
context.header("Content-Disposition", "attachment; filename=\"" + pathInfo.fileName() + "\"");
244-
// context.header("Content-Length", "" + fileStream.fileSize());
245242
context.status(200).result(inputStream);
246243
} catch (IOException | SQLException e) {
247244
context.status(500).result("Could not load file " + pathInfo.fileName());

0 commit comments

Comments
 (0)