This commit is contained in:
2021-06-30 20:44:38 +02:00
parent 1891efe2e4
commit efc3b655a8
14 changed files with 1245 additions and 1351 deletions

View File

@@ -132,7 +132,7 @@ class HttpFileServer(HTTPServer):
data = data.encode("UTF-8")
# return 200 - OK and data
self.addRoute(name, lambda req: (data, 200))
self.addRoute(name, lambda req: (200, data))
def dumpRequest(self, name):
self.dumpRequests.append(self.cleanPath(name))