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

Do not override request.payload if set manually in onRequest #4015

Closed
hueniverse opened this issue Jan 6, 2020 · 2 comments
Closed

Do not override request.payload if set manually in onRequest #4015

hueniverse opened this issue Jan 6, 2020 · 2 comments
Assignees
Labels
breaking changes Change that can breaking existing code feature New functionality or improvement
Milestone

Comments

@hueniverse
Copy link
Contributor

hueniverse commented Jan 6, 2020

  • request.payload initialized to undefined
  • If request.payload is set to any other value than undefined in onRequest, any incoming payload will be ignored.
@hueniverse hueniverse added feature New functionality or improvement breaking changes Change that can breaking existing code labels Jan 6, 2020
@hueniverse hueniverse added this to the 19.0.0 milestone Jan 6, 2020
@hueniverse hueniverse self-assigned this Jan 6, 2020
@Hydrock
Copy link

Hydrock commented Mar 29, 2020

I want to intercept the payload and modify it a little. But I only see undefined. How can I intercept payload? @hueniverse

I do something like proxy. I need to intercept the data from the POST request, change it and send it to a different address

@hueniverse
Copy link
Contributor Author

@Hydrock open a proper issue with more details. This is not the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Change that can breaking existing code feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

2 participants