cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] merge user-defined content-type with content-type built by formdata.c

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 Jul 2006 23:53:29 +0200 (CEST)

On Wed, 26 Jul 2006, yves.lejeune_at_kodak.com wrote:

> OK, this makes sense - no more need to have code in http.c which relies on
> formdata.c internals.
>
> Here is the new version of the patch.

Goodie, this looks better. I'm curious on your check for ';' in the provided
custom content type. Can you tell me a case where you actually need/want
libcurl to add a comma to the line instead of a semicolon?

RFC1867 does indeed use a comma in their example Content-Type, but libcurl
uses a straight semicolon and has always done so (as we've mimiced the
browsers who used semilcolon back in the days when I added this and I guess
they still do).

Oh, and please keep source lines shorter than 80 columns to remain "curl
style".

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-07-26