From: Guido van Rossum Date: Wed, 6 Oct 1999 15:19:19 +0000 (+0000) Subject: Fix PR#3, submitted by Skip Montanaro: if no space appears after the X-Git-Tag: v1.6a1~831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8957d6802551c6510974667e102027ed07a0fa5;p=python Fix PR#3, submitted by Skip Montanaro: if no space appears after the colon, the first character of the value is lost. --- diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 87219949c3..a147155900 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -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.