]> granicus.if.org Git - python/commitdiff
Fix PR#3, submitted by Skip Montanaro: if no space appears after the
authorGuido van Rossum <guido@python.org>
Wed, 6 Oct 1999 15:19:19 +0000 (15:19 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 Oct 1999 15:19:19 +0000 (15:19 +0000)
colon, the first character of the value is lost.

Lib/rfc822.py

index 87219949c322ef4715ce1408ad90660e5ca70eb9..a147155900e1cc6689e6aab9ab97220f72acd7f6 100644 (file)
@@ -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.