style changes

This commit is contained in:
Ricky Miller 2014-11-13 06:05:32 +09:00
parent daa2ce0ee3
commit 84036e9ddd
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
});