Browse Source
"Content-type: text/plain; charset=UTF-8" header should not appear twice in the input, but it is always better to gracefully deal with such a case. The current code concatenates the value to the values we have seen previously, producing nonsense such as "utf8UTF-8". Instead of concatenating, forget the previous value and use the last value we see. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
Junio C Hamano
12 years ago
6 changed files with 32 additions and 4 deletions
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: A U Thor |
||||
Email: a.u.thor@example.com |
||||
Subject: A E I O U |
||||
Date: Mon, 17 Sep 2012 14:23:44 -0700 |
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+New content |
Loading…
Reference in new issue