Message120332
> Er, so you're disagreeing with your previous message?
> Or am I missing something? :)
I was saying that if an empty string is returned, then it means that the header exists and is empty. An example was "User-Agent: \r\n".
And my remark "I believe None is better." concerned your initial question "Should the field be totally absent [...]" regarding how to deal with a header that does not exist.
Therefore, "User-Agent: \r\n" becomes a real '', not None. None is only when the User-Agent: header field is absent from the headers.
> Here is a patch trying to better handle whitespace.
> Would it be ok for you?
Yes Antoine, thanks! |
|
Date |
User |
Action |
Args |
2010-11-03 17:55:56 | jelie | set | recipients:
+ jelie, rhettinger, pitrou, r.david.murray |
2010-11-03 17:55:55 | jelie | set | messageid: <1288806955.85.0.708016176321.issue10281@psf.upfronthosting.co.za> |
2010-11-03 17:55:54 | jelie | link | issue10281 messages |
2010-11-03 17:55:53 | jelie | create | |
|