Skip to content

Commit 84036e9

Browse files
style changes
1 parent daa2ce0 commit 84036e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/http-proxy/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
3131
function(e) { outgoing[e] = options[forward || 'target'][e]; }
3232
);
3333

34-
outgoing.method = req.method
35-
outgoing.headers = extend({},req.headers)
34+
outgoing.method = req.method;
35+
outgoing.headers = extend({}, req.headers);
3636

3737
if (options.headers){
3838
extend(outgoing.headers, options.headers);

test/lib-http-proxy-common-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('lib/http-proxy/common.js', function () {
156156

157157
expect(outgoing.method).to.eql('i');
158158
expect(outgoing.path).to.eql('am');
159-
expect(outgoing.headers.pro).to.eql('xy')
159+
expect(outgoing.headers.pro).to.eql('xy');
160160

161161
expect(outgoing.port).to.eql(443);
162162
});

0 commit comments

Comments
 (0)