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:
Guido van Rossum 1999-10-06 15:19:19 +00:00
parent be2033697f
commit d8957d6802
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class Message:
if headerseen: if headerseen:
# It's a legal header line, save it. # It's a legal header line, save it.
list.append(line) list.append(line)
self.dict[headerseen] = string.strip(line[len(headerseen)+2:]) self.dict[headerseen] = string.strip(line[len(headerseen)+1:])
continue continue
else: else:
# It's not a header line; throw it back and stop here. # It's not a header line; throw it back and stop here.