Beta 13 http


#1

i am not sure if its me, but seems that after upgrading from 9 to 13 http its broken, the debug says something like this:

(anonymous function)ionic.bundle.js:16185sendReqionic.bundle.js:15979$http.serverRequestionic.bundle.js:15712wrappedCallbackionic.bundle.js:19197wrappedCallbackionic.bundle.js:19197(anonymous function)ionic.bundle.js:19283Scope.$evalionic.bundle.js:20326Scope.$digestionic.bundle.js:20138(anonymous function)ionic.bundle.js:20364completeOutstandingRequestionic.bundle.js:12022(anonymous function)ionic.bundle.js:12330

inside app.js
i have:

$httpProvider.defaults.headers.common['Authorization'] = 'Basic OElWSEXAMPLEEXAMPLE...22222226';
$sceDelegateProvider.resourceUrlWhitelist(['self', /.+/]);                 
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|file|blob|cdvfile):|data:image\//);

in the service i call normally: i get it like xml (it says json? could be that?) and convert it to json with x2js library.

$http({method: 'GET', url: url_to }) 
    .success(function(data) {
         results = x2js.xml_str2json(data);  
          callback(results)
    .error(function(data, status, headers, config) { 
         return '{error:true}';

     });

add the headers sent:

    **Request URL:**http://exampleeeeep.com/api/customers?display=[id,email,firstname,lastname,passwd]&filter[email]=example@example.com&filter[active]=1&filter[passwd]=4befdfdfdffdfdffdf 

**Request Headers**

Accept:application/json, text/plain, */*
Authorization:Basic OElWSEtYM0FQRDdsdsdsdddsdsdsdSkg1OFMySVA6
User-Agent:Mozilla/5.0 (Linux; Android 4.4.2; Google Nexus 7 - 4.4.2 - API 19 - 800x1280 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36

**Query String Parameters**
display [id,email,firstname,lastname,passwd]
filter[email]:blah@example.comfilter[active]:1
filter[passwd]:4bsdsdsddsdexample96b70c2

the app code doesnt show error, seems soemthing in ionic, strange, it wasnt happening before, anything known about this maybe?
thanks in advance.


#2

I AM SORRY IT WAS THE GENYMOTION :frowning:
everything working perfectly, thanks again for beta 13! keep up the good work