mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
auth header added tests
This commit is contained in:
parent
ab5c3e5c81
commit
f55ffa356a
@ -17,6 +17,7 @@ describe('lib/http-proxy/common.js', function () {
|
||||
},
|
||||
headers: {'fizz': 'bang', 'overwritten':true},
|
||||
localAddress: 'local.address',
|
||||
auth:'username:pass'
|
||||
},
|
||||
{
|
||||
method : 'i',
|
||||
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user