-
Notifications
You must be signed in to change notification settings - Fork 77
$httpConfig doesn't seem to be used by DS even on 1.0.0-beta-1 #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Actually the old doc was wrong says headers: { common: { } }. The common map is not needed but it looks like that part of the doc is now gone or I could not find it |
Ya, I just pulled that from angular's docs. So it works?
|
Yes it works once you create a simple map of headers. Is there a mailing list? I have a question in regards to unwrapping promises like Restangular $object. I am thinking about replacing Restangular by your lib and want to evaluate how much work it would take. Thanks. so far so good. |
I don't seem to be able to set some common HTTP headers. My rest server doesn't receive the Authorization header as defined below on a simple rest call like DS(resource).findAll(); However the default baseUri works fine.
'''
MYAPP.config(function (DSProvider, DSHttpAdapterProvider) {
DSProvider.defaults.baseUrl = 'http://localhost/rest/apiv1';
angular.extend (DSHttpAdapterProvider.defaults.$httpConfig, {
headers: {
common: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'APIKey 4arkm7f048rsbe8130ur85gar3jlpoke',
}
},
timeout: 20000
});
});
'''
The text was updated successfully, but these errors were encountered: