瀏覽代碼

Fix binary file read

master
Cassowary 2 年之前
父節點
當前提交
107665e133
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      hackersite.wsgi

+ 1
- 1
hackersite.wsgi 查看文件

@@ -47,7 +47,7 @@ def statics(bobo_request, f):
if content_type is not None:
response.content_type = content_type
try:
response.body = open(pth, "r").read()
response.body = open(pth, "rb").read()
except IOError:
raise bobo.NotFound
return response


Loading…
取消
儲存