witoldsz / angular-http-auth

MIT License
2.38k stars 417 forks source link

fix($httpInterceptor): multiple interceptors breaks the plugin #76

Closed mateusleon closed 9 years ago

mateusleon commented 9 years ago

Hello =)

I'm using this plugin in one of my projects and now I'm facing one problem that I weren't aware before.

If I place one custom interceptor of mine, even if looking over other status code (like one 409, for example), this plugin stops and don't does nothing that it was capable of before. It seems like that it overwrites your plugin and, because some lack of knowledge, I'm not sure if angular can support more than one interceptor of one kind (one responseSuccess or else).

Is this correct or is there something that we are missing?

Thanks in advance, awesome plugin!

witoldsz commented 9 years ago

As far as I am aware, there should be no problem combining multiple $http interceptors. Maybe you are doing something wrong?

mateusleon commented 9 years ago

Yes, it was my mistake. I apreciate your attention! Thank you very much.