janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
238 stars 57 forks source link

added custom headers to the inner requests of an batch request #50

Closed many20 closed 7 years ago

many20 commented 7 years ago

hi We submit an authentication token in the header of on every request against our odata api. The authentication is handled per controller, so we need the headers on the inner requests on an batch request. Me changes added the base.oConfig.headers also to the inner request. I have also corrected the hostname of an batch request.

many20 commented 7 years ago

mmh this test service is a little bit to slow, for the tests. I added

jasmine.getEnv().defaultTimeoutInterval = 60000;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;

to the test o.spec.js then its working

janhommes commented 7 years ago

@many20 I think the timeout changes were not commited. Can you check that and see if the test still fail?