Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lucee 6 Compat - use of headers.clone() throws error #54

Open
jclausen opened this issue Feb 21, 2025 · 0 comments
Open

Lucee 6 Compat - use of headers.clone() throws error #54

jclausen opened this issue Feb 21, 2025 · 0 comments

Comments

@jclausen
Copy link
Contributor

In Lucee 6 the clone method is no longer available on a Struct.

models/HyperRequest.cfc:1286 :

req.setHeaders( variables.headers.clone() );

Throws the following error:

GLOBAL BUNDLE EXCEPTION
-> expression:The function [clone] does not exist in the Struct. Available functions are [append, clear, copy, count, delete, duplicate, each, every, filter, find, findKey, findValue, getMetadata, insert, isEmpty, keyArray, keyExists, keyList, keyTranslate, len, map, numberFormat, reduce, some, sort, toJson, toSorted, update, valueArray].:Only the following functions are available [ append, clear, copy, count, delete, duplicate, each, every, filter, find, findKey, findValue, getMetadata, insert, isEmpty, keyArray, keyExists, keyList, keyTranslate, len, map, numberFormat, reduce, some, sort, toJson, toSorted, update, valueArray ].
-> at /home/runner/work/cbelasticsearch/cbelasticsearch/modules/hyper/models/HyperRequest.cfc:1286 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant