Hi Frank,

I've sent in a fix for the small bug reported here.
http://jira.openlaszlo.org/jira/browse/LPP-10150

Not sure if you want to review it, Henry could do it as well. It's
just a change from 'content-type' to 'Content-Type' for the HTTP
header field.

- Raju


---------- Forwarded message ----------
From: Raju Bitter <[email protected]>
Date: Sat, Mar 3, 2012 at 2:09 AM
Subject: Re: [Laszlo-user] html5 version incorrectly appends to the
Content-Type request header (openlaszlo 4.9)
To: augusto callejas <[email protected]>
Cc: [email protected]


I've sent out a fix for review Frank Guo and Henry Minsky. In
LzHTTPLoader.prototype.loadXMLDoc, a default header is added for POST
requests using the wrong capitalization for the HTTP header field
'Content-Type'.

> // If no content-type for POST was explicitly specified,
> // use "application/x-www-form-urlencoded"
> if ((method == "POST") && headers['content-type'] == null) {
>    headers['content-type'] = 'application/x-www-form-urlencoded';
> }

- Raju

Reply via email to