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 <junkio@cox.net>
Jeff King committed
May 15, 2007 at 11:35 UTC
0ab564be6e59c66c7aa4fc44997f3fc62ebcd0d9
1 file changed
+1
commit.c
+1
@@ -1057,6 +1057,7 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt,
1057
int sz;
1058
char header[512];
1059
const char *header_fmt =
1060
+ "MIME-Version: 1.0\n"
1061
"Content-Type: text/plain; charset=%s\n"
1062
"Content-Transfer-Encoding: 8bit\n";
1063
sz = snprintf(header, sizeof(header), header_fmt,