Commit d8957d68 authored by Guido van Rossum's avatar Guido van Rossum

Fix PR#3, submitted by Skip Montanaro: if no space appears after the

colon, the first character of the value is lost.
parent be203369
......@@ -158,7 +158,7 @@ class Message:
if headerseen:
# It's a legal header line, save it.
list.append(line)
self.dict[headerseen] = string.strip(line[len(headerseen)+2:])
self.dict[headerseen] = string.strip(line[len(headerseen)+1:])
continue
else:
# It's not a header line; throw it back and stop here.
......
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