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?
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?