Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 5.7.6 of the Jupyter notebook module adds a new security feature related to the HTTP content types (jupyter/notebook#4467 (comment)). It breaks pywwt because pywwt has not been returning valid MIME types (AKA content types) from its internal Jupyter server. From looking at the main `notebook` implementation, it seems that the correct approach is to use the `mimetypes` module to get the right value to put in the Content-Type header, so let's go ahead and do that. Closes WorldWideTelescope#191.
- Loading branch information