mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
style changes
This commit is contained in:
parent
daa2ce0ee3
commit
84036e9ddd
@ -31,8 +31,8 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
|
||||
function(e) { outgoing[e] = options[forward || 'target'][e]; }
|
||||
);
|
||||
|
||||
outgoing.method = req.method
|
||||
outgoing.headers = extend({},req.headers)
|
||||
outgoing.method = req.method;
|
||||
outgoing.headers = extend({}, req.headers);
|
||||
|
||||
if (options.headers){
|
||||
extend(outgoing.headers, options.headers);
|
||||
|
||||
@ -156,7 +156,7 @@ describe('lib/http-proxy/common.js', function () {
|
||||
|
||||
expect(outgoing.method).to.eql('i');
|
||||
expect(outgoing.path).to.eql('am');
|
||||
expect(outgoing.headers.pro).to.eql('xy')
|
||||
expect(outgoing.headers.pro).to.eql('xy');
|
||||
|
||||
expect(outgoing.port).to.eql(443);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user