Skip to content

Commit 8641ee3

Browse files
peffgitster
authored andcommitted
send-email: add transfer encoding header with content-type
We add the content-type header only when we have non-7bit characters from the 'From' header, so we really need to specify the encoding (in other cases, where the commit text needed a content-type, git-format-patch will already have added the encoding header). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 97e92e2 commit 8641ee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-send-email.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,8 @@ sub send_message
711711
else {
712712
push @xh,
713713
'MIME-Version: 1.0',
714-
"Content-Type: text/plain; charset=$author_encoding";
714+
"Content-Type: text/plain; charset=$author_encoding",
715+
'Content-Transfer-Encoding: 8bit';
715716
}
716717
}
717718
}

0 commit comments

Comments
 (0)