Commit 84f2148c authored by Ian Briggs's avatar Ian Briggs
Browse files

split headers on the first colon

parent 0e14f05d
......@@ -66,7 +66,7 @@ class socket:
if self.method == "POST":
beginning, self.body = self.request.decode("latin1").split("\r\n\r\n")
headers = [item.split(":") for item in beginning.split("\r\n")[1:]]
headers = [item.split(":", 1) for item in beginning.split("\r\n")[1:]]
content_length = None
for tup in headers:
key, val = tup
......
Supports Markdown
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