This commit is contained in:
yumoqing 2021-06-24 11:01:37 +08:00
parent 8914c1810d
commit 26b01e96ac
2 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class MarkdownProcessor(BaseProcessor):
async def datahandle(self,request:Request): async def datahandle(self,request:Request):
data = '' data = ''
with codecs.open(self.real_path,'rb','utf-8') as f: with codecs.open(self.real_path,'r','utf-8') as f:
data = f.read() data = f.read()
self.content = self.urlreplace(data, request) self.content = self.urlreplace(data, request)

View File

@ -1,4 +1,5 @@
import os,sys import os,sys
import time
import ssl import ssl
from socket import * from socket import *
from aiohttp import web from aiohttp import web