Skip to content

Commit

Permalink
format-patch: add MIME-Version header when we add content-type.
Browse files Browse the repository at this point in the history
When we add Content-Type: header, we should also add
MIME-Version: header as well.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jeff King authored and Junio C Hamano committed May 16, 2007
1 parent 61d7256 commit 0ab564b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ab564b

Please sign in to comment.