Skip to content

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

@jclausen

Description

@jclausen

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions