From: Jeff King Date: Tue, 15 May 2007 15:35:13 +0000 (-0400) Subject: format-patch: add MIME-Version header when we add content-type. X-Git-Tag: v1.5.1.5~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ab564be6e59c66c7aa4fc44997f3fc62ebcd0d9;p=git.git format-patch: add MIME-Version header when we add content-type. When we add Content-Type: header, we should also add MIME-Version: header as well. Signed-off-by: Junio C Hamano --- diff --git a/commit.c b/commit.c index 7d78e786e..43b767ce5 100644 --- a/commit.c +++ b/commit.c @@ -1057,6 +1057,7 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt, int sz; char header[512]; const char *header_fmt = + "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=%s\n" "Content-Transfer-Encoding: 8bit\n"; sz = snprintf(header, sizeof(header), header_fmt,