Skip to content

Commit 517b605

Browse files
rscharfegitster
authored andcommitted
mailinfo: don't insert header prefix for handle_content_type()
handle_content_type() only cares about the value after "Content-Type: "; there is no need to insert that string for it. Suggested-by: Eric Sunshine <[email protected]> Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a91cc7f commit 517b605

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mailinfo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ static int check_header(struct mailinfo *mi,
570570
len = strlen("Content-Type: ");
571571
strbuf_add(&sb, line->buf + len, line->len - len);
572572
decode_header(mi, &sb);
573-
strbuf_insertstr(&sb, 0, "Content-Type: ");
574573
handle_content_type(mi, &sb);
575574
ret = 1;
576575
goto check_header_out;

0 commit comments

Comments
 (0)