HTTP getAsBinary should be treated as an explicit request for binary content unless `never` is passed.

Description

The getAsBinary attribute to the HTTP component is problematic as ACF and Lucee will still return binary data if the attribute value is no/false, if the content type in the response is a binary type.

Of the possible values, only never should always stringify the response.

Implement the attribute values as such:

* false/no/auto - Return binary only if the content type in the response header is a binary type
* true/yes - Always return binary
* never - Disallow return of binary data if the content type delivered is a binary type

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created February 23, 2025 at 12:20 AM
Updated February 23, 2025 at 12:49 AM
Resolved February 23, 2025 at 12:49 AM

Flag notifications