Skip to content
Tcl Source Code View Ticket
Login

View Ticket

cant pass a charset=utf-8 with the type text/xml

Closed / Fixed3391977fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-15 14:26:33
On the function http:geturl I cant pass the charset=utf-8 with the type "text/xml" without having the Content-Type twice in the http.
with the parameter:
-headers [list "Content-Type" "text/xml; charset=utf-8"] and -type "text/xml"

it makes:
Content-Type: text/xml; charset=utf-8
Content-Type: text/xml

with the parameter:
-headers [list "Content-Type" "text/xml; charset=utf-8"]]

it makes:
Content-Type: text/xml; charset=utf-8
Content-Type: application/x-www-form-urlencoded

I think if in the -headers a Content-Type is defined then the -type does not write a Content-Type or a parameter of charset must produce a Content-Type with charset.
mziplain2011-08-15 21:26:35
File Added - 421175: testenc.tcl
mziplain2011-08-29 16:06:58
File Added - 422288: http-2.7.5.tm
mziplain2011-08-29 16:07:46
I have now attached a bugfixed version of the http file.
dkfplain2011-08-31 19:25:40
File Added - 422439: 3391977.patch
dkfplain2011-08-31 19:26:34
Does the patch I attached represent the change that you want done? (Didn't produce any test cases yet.)
mziplain2011-08-31 19:43:03
Yes this patch does that what I want.
Thank you. Donal
dkfplain2011-09-16 15:35:34
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: