File tree Expand file tree Collapse file tree
workspace-server/src/main/java/gov/nasa/jpl/aerie/workspace/server Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments