aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-08-21 00:21:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-08-21 00:21:24 +0200
commiteeb2cb05a1012d8aa61174c762698b39d19c3d5d (patch)
tree3989893c25cbb37d8d87fb0ab7b3e3a30db0dee0 /lib/hostip6.c
parentdaa96f9928504c76644746b1cff9cc1fe4eddb48 (diff)
cmdline: make -F type= accept ;charset=
The -F option allows some custom parameters within the given string, and those strings are separated with semicolons. You can for example specify "name=daniel;type=text/plain" to set content-type for the field. However, the use of semicolons like that made it not work fine if you specified one within the content-type, like for: "name=daniel;type=text/plain;charset=UTF-8" ... as the second one would be seen as a separator and "charset" is no parameter curl knows anything about so it was just silently discarded. The new logic now checks if the semicolon and following keyword looks like a parameter it knows about and if it isn't it is assumed to be meant to be used within the content-type string itself. I modified test case 186 to verify that this works as intended. Reported by: Larry Stone Bug: http://curl.haxx.se/bug/view.cgi?id=3048988
Diffstat (limited to 'lib/hostip6.c')
0 files changed, 0 insertions, 0 deletions