Skip to content

Commit

Permalink
Merge pull request #85 from tuliomarks/patch-1
Browse files Browse the repository at this point in the history
Wrong condition on the second while to get data
  • Loading branch information
andyedinborough committed Jun 14, 2012
2 parents ae9682b + 02497e9 commit 50562bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void ParseMime(Stream reader, string boundary, int maxLength) {

data = reader.ReadLine(ref maxLength, Encoding);
var body = new StringBuilder();
while (data != null && !data.StartsWith(bounderInner)) {
while (data != string.Empty && !data.StartsWith(bounderInner)) {
body.AppendLine(data);
data = reader.ReadLine(ref maxLength, Encoding);
}
Expand Down

0 comments on commit 50562bb

Please sign in to comment.