Skip to content

Commit 9af657e

Browse files
nik-blue-lavamonkpow
authored andcommitted
[#526] Add small test check for raised question.
1 parent 0122595 commit 9af657e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/proxyReqOptDecorator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe('proxyReqOptDecorator', function () {
6565
app.use(proxy('localhost:12345', {
6666
proxyReqOptDecorator: function (reqOpt, req) {
6767
reqOpt.headers['user-agent'] = 'test user agent';
68+
reqOpt.headers['content-type'] = 'multipart/form-data';
6869
assert(req instanceof http.IncomingMessage);
6970
return reqOpt;
7071
}
@@ -75,6 +76,7 @@ describe('proxyReqOptDecorator', function () {
7576
.end(function (err, res) {
7677
if (err) { return done(err); }
7778
assert.equal(res.body.headers['user-agent'], 'test user agent');
79+
assert.equal(res.body.headers['content-type'], 'multipart/form-data');
7880
done();
7981
});
8082
});

0 commit comments

Comments
 (0)