From 3fed74d521df05ecb588cdb2d435e61b2d968a6e Mon Sep 17 00:00:00 2001 From: serkus <7erkus@gmail.com> Date: Mon, 13 Dec 2021 23:26:32 +0900 Subject: [PATCH] commiting strings in src/handler.py for no response data --- src/handler.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/handler.py b/src/handler.py index 50ff6b2..929ae9c 100755 --- a/src/handler.py +++ b/src/handler.py @@ -67,13 +67,13 @@ class Handler(BaseHTTPRequestHandler): except Exception(e): print(e) self.r_t = json.dumps(pkg_list) - + """" elif self.path == '/main': #print(self.rfile.read()) with open("./README.txt", 'r') as f: self.r_t = str(f.read()) #self.r_t = s - + """ elif self.path == '/ovelays': overlays = get_list_overlays() #print(ovls) @@ -93,7 +93,7 @@ class Handler(BaseHTTPRequestHandler): self.r_static() self.send_response(200) #print(self.r_t) - + """ elif self.path == '/get_dump_list': try: with open('./pkgs.json', 'tr') as fn: @@ -103,7 +103,7 @@ class Handler(BaseHTTPRequestHandler): except Exception (e): print(str(e)) self.r_t = json.dumps({"dump_portage": pkg_list}) - + """ elif self.path.startswith("/?st_app="): config = load_config() param = self.path.replace("/?st_app=", "") @@ -149,13 +149,13 @@ class Handler(BaseHTTPRequestHandler): #self.r_t = str(sort_inatll_pkg()) self.r_t = str(json.dumps(scan_config_portage())) - + """ elif '.py?' in self.path: print("loading") self.path = str(self.path.split('?')[0]) print(self.path) self.r_static() - + """ else: self.send_response(404)