Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
fix not working on windows bug, close #67
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Dec 10, 2019
1 parent 4142acf commit d0007bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weditor/web/handlers/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
class StaticProxyHandler(tornado.web.StaticFileHandler):
http_client = tornado.httpclient.AsyncHTTPClient()

def initialize(self, path: str ="/", default_filename: str = None) -> None:
self.root = path
def initialize(self, path: str = None, default_filename: str = None) -> None:
self.root = path if path else os.path.expanduser("~")
self.default_filename = default_filename

async def download_file(self, path: str) -> str:
Expand Down

0 comments on commit d0007bf

Please sign in to comment.