atecarlos / protractor-http-mock

A library designed to work alongside Protractor for setting up mocks for your HTTP ajax requests.
MIT License
173 stars 70 forks source link

Set as default an empty header object for http requests. #63

Closed vzickner closed 8 years ago

vzickner commented 8 years ago

Some applications (for example satellizer) expect that headers is an object, unfortunately in httpMock it is undefined. This pull request changes the default value of headers to an empty object.

atecarlos commented 8 years ago

Hi @valentinz . The expected current functionality is that at least an empty header function is always returned (and not undefined). Could you elaborate a bit more into the scenario were you are getting empty headers?