Client.Timeout exceeded while awaiting headers

FYI: below is the python code where i solved this problem:

# when my python server received the webhook POST request,
# response the gitea server withe header Content-Length set to 0 solved this problem
def do_POST(self):
    self.send_response(HTTPStatus.OK)
    self.send_header("Content-Length", "0")  
    self.end_headers()