Issues

Select view

Select search mode

 

CFHTTP result is missing charset

Fixed

Description

Adobe ColdFusion returns a charset key in the CFHTTP response which contains the charset sent in the response's Content-Type header (or an empty string if none was set)
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-g-h/cfhttp.html

Lucee's CFHTTP struct does not contain a charset key which breaks compat with apps relying on it.

https://trycf.com/gist/340f5936baf5df62daa5297673e869e2/lucee5?theme=monokai

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Priority

Created 16 August 2021 at 20:55
Updated 9 June 2023 at 16:50
Resolved 31 January 2023 at 08:21

Activity

Show:

Pothys - MitrahSoft31 January 2023 at 08:21

Now the non-text mime type with valid charset returns the correct charset value in the HTTP result in lucee.

Zac Spitzer29 December 2022 at 15:11

Pothys - MitrahSoft13 December 2022 at 06:42
Edited

I’ve checked this ticket with lucee latest build 6.0.0.313-SNAPSHOT. Now cfhttp result always includes the charset key correctly.

As this fix the non-text mime type with valid charset returns the empty charset value in the HTTP result in lucee. Seems ACF returns the charset value. So it makes an incompatibility issue with ACF.

So I added a fix to this issue
Pull Request:


Zac Spitzer9 December 2022 at 17:00

Zac Spitzer9 December 2022 at 16:27

Flag notifications