Commit 0a43651c authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: allow subclasses override how to read requestline

parent 3a25f2c8
......@@ -260,11 +260,14 @@ class WSGIHandler(object):
except Exception:
traceback.print_exc()
def read_requestline(self):
return self.rfile.readline(MAX_REQUEST_LINE)
def handle_one_request(self):
if self.rfile.closed:
return
raw_requestline = self.rfile.readline(MAX_REQUEST_LINE)
raw_requestline = self.read_requestline()
if not raw_requestline:
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment