def do_POST(self): params = urlparse(self.path) if params.path in self.handlers: self.handlers[params.path](self) else: SimpleHTTPRequestHandler.do_POST(self)
def do_POST(self): if self.path == "/toggle": lock.acquire() global status status = (status + 1) % 2 lock.release() self.get_status() else: SimpleHTTPRequestHandler.do_POST(self)
def do_POST(self): SimpleHTTPRequestHandler.do_POST(self)
def do_POST(self): if self.handle_git('POST'): return SimpleHTTPRequestHandler.do_POST(self)