jonsamwell / angular-http-batcher

Enables HTTP batch request with AngularJS
MIT License
96 stars 28 forks source link

Exception when using with cache:true #1

Closed ialexivy closed 9 years ago

ialexivy commented 9 years ago

I found that plugin throws exception when using with cache:true definition like so: 'getAll': { method: "GET", cache:true, isArray:true }, it's appears angular unable to parse headers when cache enabled, please check it out.

jonsamwell commented 9 years ago

Hi,

I'll check this out, thanks for finding this.

Jon

jonsamwell commented 9 years ago

@qwert789 this should be fixed now. When you set the cache:true angular is expecting the headers as a string not an object (as the module was passing down).

ialexivy commented 9 years ago

Gorgeous, thanks.

jonsamwell commented 9 years ago

No worries - let me know if anything else goes wrong. Thanks for using the module.