summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-10-06 15:19:19 (GMT)
committerGuido van Rossum <guido@python.org>1999-10-06 15:19:19 (GMT)
commitd8957d6802551c6510974667e102027ed07a0fa5 (patch)
treeb2d96792cd4f826f3735063e39c2ebc4a9c18d81 /Lib
parentbe2033697f8b9b44656965888d0533bf6d0a8499 (diff)
downloadcpython-d8957d6802551c6510974667e102027ed07a0fa5.zip
cpython-d8957d6802551c6510974667e102027ed07a0fa5.tar.gz
cpython-d8957d6802551c6510974667e102027ed07a0fa5.tar.bz2
Fix PR#3, submitted by Skip Montanaro: if no space appears after the
colon, the first character of the value is lost.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rfc822.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 8721994..a147155 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.