summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/http.c b/http.c
index 84463dff3d..2b4f6a357c 100644
--- a/http.c
+++ b/http.c
@@ -978,6 +978,9 @@ static void extract_content_type(struct strbuf *raw, struct strbuf *type,
while (*p && !isspace(*p))
p++;
}
+
+ if (!charset->len && starts_with(type->buf, "text/"))
+ strbuf_addstr(charset, "ISO-8859-1");
}
/* http_request() targets */