Skip to content

Commit

Permalink
auth header added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashubham committed Mar 12, 2015
1 parent ab5c3e5 commit f55ffa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/lib-http-proxy-common-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('lib/http-proxy/common.js', function () {
},
headers: {'fizz': 'bang', 'overwritten':true},
localAddress: 'local.address',
auth:'username:pass'
},
{
method : 'i',
Expand All @@ -37,6 +38,7 @@ describe('lib/http-proxy/common.js', function () {
expect(outgoing.headers.fizz).to.eql('bang');
expect(outgoing.headers.overwritten).to.eql(true);
expect(outgoing.localAddress).to.eql('local.address');
expect(outgoing.auth).to.eql('username:pass');
});

it('should not override agentless upgrade header', function () {
Expand Down

0 comments on commit f55ffa3

Please sign in to comment.