PDA

View Full Version : [DUP] proxy headers getting \n when using a +



dewil_de
20 Apr 2012, 1:06 AM
Hey,

I'm trying to define a header on my ajaxproxy but when i place a + inside the command it places \n all over the header.



{
Accept: 'application/json',
BackendMode: 'jpa',
'Authorization': 'Basic ' + Base64.encode(App.Settings.user + ":" + App.Settings.password)
}


but this gets generated as



{\nAccept: \'application/json\',\nBackendMode: \'jpa\',\n\'Authorization\': \'Basic \' + Base64.encode(App.Settings.user + ":" + App.Settings.password)\n}


any idea how i could fix this? or should i report this as a bug?

aconran
23 Apr 2012, 9:03 PM
If you want to use methods or variables in your configuration you need to create an override. The property grid accepts primitive values only.