CFHTTP multipart/form-data post charset

Hi,

I noticed an issue after updating from 4.5.3.018 to 4.5.5.006 (or 5.0 and 5.1) trying to upload files using CFHTTP.

For whatever reason the charset=US-ASCII gets added the Content-Type header even if I explicitly tell it otherwise (setting the charset on cfhttp to UTF-8).

The used service in this instance does not accept this encoding type leaving me stuck at version 4.5.3.018.

Before:

HTTP/1.1|Accept-Encoding:gzip|User-Agent:Lucee (CFML Engine)|Content-Length:****|Content-Type:multipart/form-data; boundary=****|Host:****|Connection:Keep-Alive

After:

HTTP/1.1|Accept-Encoding:gzip|User-Agent:Lucee (CFML Engine)|Content-Length:****|Content-Type:multipart/form-data; boundary=****; charset=US-ASCII|Host:****|Connection:Keep-Alive

What can I do to remove this encoding type?

@nmera I’ve created a ticket for this issue. LDEV-1265, Please follow this.

2 Likes