Skip to content

Commit

Permalink
fix not set header
Browse files Browse the repository at this point in the history
  • Loading branch information
jizhongsheng committed Feb 18, 2022
1 parent ee209d6 commit 354f6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebook/files/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def get(self, path, include_body=True):
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
# RFC 6713
if encoding == 'gzip':
return 'application/gzip'
self.set_header('Content-Type', 'application/gzip')
elif encoding is not None:
return 'application/octet-stream'
self.set_header('Content-Type', 'application/octet-stream')
else:
if model['format'] == 'base64':
self.set_header('Content-Type', 'application/octet-stream')
Expand Down

0 comments on commit 354f6f3

Please sign in to comment.