It is not string or Array, but "Object"

Here is the code piece in source "as" file :

//----------------------------------
        //  headers
        //----------------------------------

        private var _headers:Object = {};

        [Inspectable(defaultValue="undefined", category="General")]
        /**
         *  Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to          *  be sent with the same name the value should be specified as an Array.
         *
         *  @langversion 3.0
         *  @playerversion Flash 9
         *  @playerversion AIR 1.1
         *  @productversion Flex 3
         */
        public function get headers():Object
        {
            return _headers;
        }
        public function set headers(value:Object):void
        {
            _headers = value;
        }

In flex version debug view, it is evaluated as below :



Thanks,
Serkan

12.04.2019 06:16 tarihinde Alex Harui yazdı:

It looks like a String is passed in to see if it an Array.  Should service.headers be an array or string?

-Alex

*From: *Serkan Taş <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Wednesday, April 10, 2019 at 5:41 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: Work on Emulation

Alex, thank you for PR-406.

Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ?

cid:[email protected]

Here is the piece in ActionScript :

service.headers = {Authorization:"Basic " + encoder.toString()} as Array;

Thanks in advance,
Serkan


Reply via email to