Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkazuomiller committed Nov 12, 2014
1 parent daa2ce0 commit 84036e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/http-proxy/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/lib-http-proxy-common-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 84036e9

Please sign in to comment.