Mercurial > hg > mlmmj
diff src/send_digest.c @ 740:5db75af2d0db
Fix Content-Transfer-Encoding: header for digests,
and always close digest listtext
author | Ben Schmidt |
---|---|
date | Mon, 20 Sep 2010 01:41:32 +1000 |
parents | c26e97a2207b |
children | b00eb39643c1 |
line wrap: on
line diff
--- a/src/send_digest.c Mon Sep 20 01:19:25 2010 +1000 +++ b/src/send_digest.c Mon Sep 20 01:41:32 2010 +1000 @@ -321,7 +321,7 @@ tmp = concatstr(3, "\n--", boundary, "\nContent-Type: text/plain; charset=UTF-8" - "\nContent-Encoding: 8bit" + "\nContent-Transfer-Encoding: 8bit" "\n\n"); if (writen(fd, tmp, strlen(tmp)) == -1) { log_error(LOG_ARGS, "Could not write digest text/plain" @@ -376,6 +376,8 @@ } close(txtfd); + } else if (txtfd > 0) { + close(txtfd); } myfree(line);