summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-05-15 11:35:13 -0400
committerJunio C Hamano <junkio@cox.net>2007-05-16 12:37:25 -0700
commit0ab564be6e59c66c7aa4fc44997f3fc62ebcd0d9 (patch)
treeed52f424a9387d003160c18a908408d6a52bf9c0 /commit.c
parent61d7256431da590dfca689e0681ed9437fd5d448 (diff)
downloadgit-0ab564be6e59c66c7aa4fc44997f3fc62ebcd0d9.tar.gz
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>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.c b/commit.c
index 7d78e786e9..43b767ce53 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,