Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8957d6

Browse files
committed
Fix PR#3, submitted by Skip Montanaro: if no space appears after the
colon, the first character of the value is lost.
1 parent be20336 commit d8957d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/rfc822.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def readheaders(self):
158158
if headerseen:
159159
# It's a legal header line, save it.
160160
list.append(line)
161-
self.dict[headerseen] = string.strip(line[len(headerseen)+2:])
161+
self.dict[headerseen] = string.strip(line[len(headerseen)+1:])
162162
continue
163163
else:
164164
# It's not a header line; throw it back and stop here.

0 commit comments

Comments
 (0)