Skip to content

Commit

Permalink
fixed error GET /db/bucker.files/<fileid>/binary if fileid is not an …
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Jan 28, 2017
1 parent d67a5f2 commit c489fa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void sendBinaryContent(
exchange.setStatusCode(HttpStatus.SC_OK);

gridFSBucket.downloadToStream(
file.getId().asObjectId().getValue(),
file.getId(),
exchange.getOutputStream());

exchange.endExchange();
Expand Down

0 comments on commit c489fa7

Please sign in to comment.