small fixes

This commit is contained in:
2021-03-22 04:12:13 +01:00
parent 42f1661e0a
commit 9ba7a030a7
3 changed files with 37 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ from httplib.httpsocket import HTTPSocket
def _get_start_line(client: HTTPSocket):
line = client.read_line().strip()
split = list(filter(None, line.split(" ")))
split = list(filter(None, line.split(" ", 2)))
if len(split) < 3:
raise InvalidStatusLine(line) # TODO fix exception