git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] http: fix charset detection of extract_content_type()

From
Jeff King <peff@peff.net>
Date
Jun 18, 2014, 07:40 UTC
Message-ID
<20140618074026.GB24769@sigill.intra.peff.net>
In-Reply-To
<1403043113-12579-1-git-send-email-eungjun.yi@navercorp.com>
On Wed, Jun 18, 2014 at 07:11:53AM +0900, Yi EungJun wrote:
Show 15 quoted lines
> From: Yi EungJun <eungjun.yi@navercorp.com>
> 
> extract_content_type() could not extract a charset parameter if the
> parameter is not the first one and there is a whitespace and a following
> semicolon just before the parameter. For example:
> 
>     text/plain; format=fixed ;charset=utf-8
> 
> And it also could not handle correctly some other cases, such as:
> 
>     text/plain; charset=utf-8; format=fixed
>     text/plain; some-param="a long value with ;semicolons;"; charset=utf-8
> 
> Thanks-to: Jeff King <peff@peff.net>
> Signed-off-by: Yi EungJun <eungjun.yi@navercorp.com>
Thanks, this version looks good to me.
-Peff
Previous: Yi EungJun
Message 2 of 2 in “http: fix charset detection of extract_content_type()”
  1. http: fix charset detection of extract_content_type()Yi EungJun, Jun 17, 2014
  2. Jeff KingJun 18, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.