Details
Assignee
Michael OffnerMichael OffnerReporter
Zac SpitzerZac SpitzerPriority
NewNew 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
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Zac Spitzer
Zac SpitzerPriority
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
Created 1 August 2020 at 16:03
Updated 29 October 2024 at 11:27
ie. for image/png types
<cfcontent file="lucee.png" type="image/png">
returns the content type as image/png;charset=UTF-8
HTTP/1.1 200 Content-Type: image/png;charset=UTF-8 Content-Length: 1772 Date: Sat, 01 Aug 2020 15:45:00 GMT
The charset shouldn't be appended, returning a png via cfcontent, should have the same content-type as directly requesting the png file from the webserver
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/commons/io/res/ContentTypeImpl.java#L75
Binary mime types have compression disabled
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/Content.java#L180
seems this was a problem with ACF 11 (tho the other problems noted in this don’t occur with Lucee)
https://webdev.cedarville.edu/blog/2015/coldfusion-11-and-charset-encoding-issue-serving-images/
I think charset is only required for text mime types
https://www.w3.org/International/articles/http-charset/index