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>maint
parent
61d7256431
commit
0ab564be6e
1
commit.c
1
commit.c
|
@ -1057,6 +1057,7 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt,
|
||||||
int sz;
|
int sz;
|
||||||
char header[512];
|
char header[512];
|
||||||
const char *header_fmt =
|
const char *header_fmt =
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=%s\n"
|
"Content-Type: text/plain; charset=%s\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n";
|
"Content-Transfer-Encoding: 8bit\n";
|
||||||
sz = snprintf(header, sizeof(header), header_fmt,
|
sz = snprintf(header, sizeof(header), header_fmt,
|
||||||
|
|
Loading…
Reference in New Issue