Mercurial > libervia-web
comparison libervia/server/server.py @ 1218:c9fc839d304c
server: fixed BUILD_DIR page encoding following python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Aug 2019 17:13:42 +0200 |
parents | fe9782391f63 |
children | 62bf4f87c249 |
comparison
equal
deleted
inserted
replaced
1217:fe9782391f63 | 1218:c9fc839d304c |
---|---|
801 callback=LiberviaPage.onFileChange, site_root=res, | 801 callback=LiberviaPage.onFileChange, site_root=res, |
802 site_path=site_path) | 802 site_path=site_path) |
803 tasks_manager = TasksManager(self, res) | 803 tasks_manager = TasksManager(self, res) |
804 yield tasks_manager.runTasks() | 804 yield tasks_manager.runTasks() |
805 res.putChild( | 805 res.putChild( |
806 C.BUILD_DIR, | 806 C.BUILD_DIR.encode('utf-8'), |
807 static.File(self.getBuildPath(site_name), | 807 static.File(self.getBuildPath(site_name), |
808 defaultType="application/octet-stream"), | 808 defaultType="application/octet-stream"), |
809 ) | 809 ) |
810 | 810 |
811 LiberviaPage.importPages(self, res) | 811 LiberviaPage.importPages(self, res) |