diff --git a/notebook/nbconvert/handlers.py b/notebook/nbconvert/handlers.py index ec47db5cb4..5fe2e46aa2 100644 --- a/notebook/nbconvert/handlers.py +++ b/notebook/nbconvert/handlers.py @@ -78,10 +78,11 @@ def get_exporter(format, **kwargs): raise web.HTTPError(500, "Could not construct Exporter: %s" % e) class NbconvertFileHandler(IPythonHandler): + SUPPORTED_METHODS = ('GET',) @web.authenticated def get(self, format, path): - exporter = get_exporter(format, log=self.log) + exporter = get_exporter(format, config=self.config, log=self.log) path = path.strip('/') model = self.contents_manager.get(path=path) model_content = model['content'] @@ -125,6 +126,7 @@ def get(self, format, path): class NbconvertServiceHandler(IPythonHandler): + SUPPORTED_METHODS = ('POST',) @web.authenticated def post(self):