Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test case exercising proxyReqDecorator appears to fail. #550

Open
monkpow opened this issue Aug 20, 2024 · 0 comments
Open

test case exercising proxyReqDecorator appears to fail. #550

monkpow opened this issue Aug 20, 2024 · 0 comments

Comments

@monkpow
Copy link
Collaborator

monkpow commented Aug 20, 2024

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);
-          });
-      });
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant