We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
context key is stripped from body.
context
when we include context in our request body it is stripped out from outgoing request. ...
const got = require('got'); (async () => { let resp; try { resp = await got('http://google.com',{ method : 'POST', json : { context : { a: 'test'}, a : { b: 'asdasd'} } }); } catch (e) { console.log(JSON.parse(e.options.body)); } console.log(resp); })();
The text was updated successfully, but these errors were encountered:
culprit is at merge.ts. Is it really necessary to check context in every source ?
Sorry, something went wrong.
Add failing test for #897
cb042ac
I think the problem is that json, body, form, should not be passed through merge.ts at all. @szmarczak would know more.
json
body
form
merge.ts
I've added a failing test for this: cb042ac
I'll investigate ASAP
Successfully merging a pull request may close this issue.
Describe the bug
context
key is stripped from body.Actual behavior
when we include
context
in our request body it is stripped out from outgoing request....
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: