-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Description
I noticed this while working on something else, and am not sure the test is correct. Stashing for investigation.
- it.only('when the author uses a proxyReqDecorator', function (done) {
- var app = express();
- app.use(proxy('localhost:8109', {
- proxyReqBodyDecorator: function() {
- return 'hey man';
- }
- }));
-
- request(app)
- .post('/headers')
- .send({
- data: 'random string of words'
- })
- .set('Content-Type', 'application/json')
- .set('Accept', 'application/json')
- .end(function (err, res) {
- if (err) { throw err; }
- assert(res.body.headers['content-length']);
- const contentLength = res.body.headers['content-length'];
- assert.equal(contentLength, 18);
- done(err);
- });
- });
-
Metadata
Metadata
Assignees
Labels
No labels