Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Add to default headers at time of initialization #97

Closed
vernak2539 opened this issue Apr 18, 2016 · 0 comments
Closed

Add to default headers at time of initialization #97

vernak2539 opened this issue Apr 18, 2016 · 0 comments

Comments

@vernak2539
Copy link
Contributor

vernak2539 commented Apr 18, 2016

Give ability to a global default header, which is passed in at the time of init.

Test to pass (should be added to general-tests.js)

it('should add header from options to global headers (this.defaultHeaders)', function() {
    // Arrange
    var client;
    initOptions.headers = { newHeader: true };

    // Act
    client = new FuelSoap(initOptions);

    // Assert
    assert.ok(client.defaultHeaders.newHeader);
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant