Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

proxy is failing to forward the body included in the original request. #281

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kghmanuel
Copy link

No description provided.

if (req.body) {
console.log('writing body: ' + JSON.stringify(req.body));
mlReq.write(JSON.stringify(req.body));
}

req.pipe(mlReq);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure the mlReq.write is needed? Line 100 has req.pipe(mlReq) which should essentially pass the body through unchanged. Then again, perhaps there is some json parsing going on that messes things up.

Keep in mind demo-cat has been running for a long while, and we have not observed this so far..

@grtjn
Copy link
Contributor

grtjn commented Apr 25, 2017

By the way, does this relate to an existing ticket?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants