diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index bef7669..28138b2 100644 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -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) diff --git a/ahserver/configuredServer.py b/ahserver/configuredServer.py index 3cff8c2..cc7285a 100644 --- a/ahserver/configuredServer.py +++ b/ahserver/configuredServer.py @@ -1,4 +1,5 @@ import os,sys +import time import ssl from socket import * from aiohttp import web