I'm using volley library and overriding getHeaders() method to put custom headers. It is working fine for devices with API > 10 but for devices with API 10 it returns unexpected response code 400.
The headers in https are the same for devices with API 17 and API 10. I have also updated the volley lib to newest version, but with no luck.
In getHeaders() method I'm putting
String encodedCredentials = Base64.encodeToString(credentials.getBytes(), Base64.DEFAULT);
headerMap.put("Authorization", "Basic " + encodedCredentials);
Do you have any suggestion how to solve this problem?