diff options
Diffstat (limited to 'backend/server.py')
-rw-r--r-- | backend/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/server.py b/backend/server.py index 477ad15..231a16a 100644 --- a/backend/server.py +++ b/backend/server.py @@ -9,11 +9,11 @@ class MyServer(http.server.BaseHTTPRequestHandler): self.send_header("Content-type", "application/json") self.send_header("Access-Control-Allow-Origin", "*") self.send_header("Access-Control-Allow-Headers", "content-type") + self.end_headers() output = Get_Plist.main() self.wfile.write(output.encode()) - if __name__ == "__main__": webServer = http.server.HTTPServer((Config.hostName, Config.serverPort), MyServer) print("Server started http://%s:%s" % (Config.hostName, Config.serverPort)) |