Merge pull request #7259 from takluyver/kernelspec-head-error

Fix HEAD requests for kernelspec resources
This commit is contained in:
Min RK 2014-12-17 11:06:44 -08:00
commit 53d1f1b1a1

View File

@ -20,7 +20,7 @@ class KernelSpecResourceHandler(web.StaticFileHandler, IPythonHandler):
@web.authenticated
def head(self, kernel_name, path):
self.get(kernel_name, path, include_body=False)
return self.get(kernel_name, path, include_body=False)
default_handlers = [
(r"/kernelspecs/%s/(?P<path>.*)" % kernel_name_regex, KernelSpecResourceHandler),