Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
hardcode mime type as application/x-ipynb+json
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyajohnson authored and lesserwhirls committed Jul 31, 2018
1 parent 5aaf796 commit 3bde634
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void getNotebookForDataset(HttpServletRequest req, HttpServletResponse re
res.setHeader(Constants.Content_Length, Integer.toString(fileContents.length()));

// Set content...
String mimeType = tdsContext.getServletContext().getMimeType(responseFile.getName());
String mimeType = "application/x-ipynb+json";
res.setContentType(mimeType);
res.getOutputStream().write(fileContents.getBytes());
res.flushBuffer();
Expand Down

0 comments on commit 3bde634

Please sign in to comment.