Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
format-patch: add MIME-Version header when we add content-type.
author
Jeff King
<peff@peff.net>
Tue, 15 May 2007 15:35:13 +0000
(11:35 -0400)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 16 May 2007 19:37:25 +0000
(12:37 -0700)
When we add Content-Type: header, we should also add
MIME-Version: header as well.
Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
61d7256
)
diff --git
a/commit.c
b/commit.c
index 7d78e786e9a6a6a3566cb7aa6555a815d79f9e4b..43b767ce5342624f98603e83ba3ec263ea8a7dda 100644
(file)
--- 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,