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ş <serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org" <users@royale.apache.org>
*Date: *Wednesday, April 10, 2019 at 5:41 AM
*To: *"users@royale.apache.org" <users@royale.apache.org>
*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:part1.38E9F6E2.6D6FE83E@likyateknoloji.com

Here is the piece in ActionScript :

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

Thanks in advance,
Serkan


Reply via email to