mirror of https://github.com/python/cpython
Fix PR#3, submitted by Skip Montanaro: if no space appears after the
colon, the first character of the value is lost.
This commit is contained in:
parent
be2033697f
commit
d8957d6802
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue