remote-curl: reencode http error messages
commitfc1b774c72990f0ff92370316412b19fd72baa77
authorJeff King <peff@peff.net>
Thu, 22 May 2014 09:30:29 +0000 (22 05:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 May 2014 16:59:22 +0000 (27 09:59 -0700)
tree8f0edeb30a61f3871c65234b59e1f72c1f989cb0
parentd4241f52d1a19bf464d63cbc4cd67fcc6a3af01d
remote-curl: reencode http error messages

We currently recognize an error message with a content-type
"text/plain; charset=utf-16" as text, but we ignore the
charset parameter entirely. Let's encode it to
log_output_encoding, which is presumably something the
user's terminal can handle.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c
t/lib-httpd/error.sh
t/t5550-http-fetch-dumb.sh