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):
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()
self.content = self.urlreplace(data, request)

View File

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