Skip to content

Commit 354f6f3

Browse files
author
jizhongsheng
committed
fix not set header
1 parent ee209d6 commit 354f6f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/files/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def get(self, path, include_body=True):
6464
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
6565
# RFC 6713
6666
if encoding == 'gzip':
67-
return 'application/gzip'
67+
self.set_header('Content-Type', 'application/gzip')
6868
elif encoding is not None:
69-
return 'application/octet-stream'
69+
self.set_header('Content-Type', 'application/octet-stream')
7070
else:
7171
if model['format'] == 'base64':
7272
self.set_header('Content-Type', 'application/octet-stream')

0 commit comments

Comments
 (0)