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 9ab9e97 commit 72a775a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/files/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ async 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 72a775a

Please sign in to comment.