-
Notifications
You must be signed in to change notification settings - Fork 230
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
Adding node-fetch target #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sorting this PR out @jgiovaresco! Looks good to me. One comment regarding JSON encoding, similar to #179. Some of the fixtures would change after that as well.
headers: {'content-type': 'application/json'}, | ||
body: { | ||
number: 1, | ||
string: 'f"oo', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'f"oo'
🤣
@hirenoble is the original author (Kong#154). I've just resolve conflicts and fix tests that were failing. @develohpanda noticed that JSON body should be stringified (https://github.com/node-fetch/node-fetch#post-with-json) And looking at fetch options (https://github.com/node-fetch/node-fetch#fetch-options) I noticed that `json` attribute does not exist, so I've removed it.
4038723
to
ea9398c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done 👏
@jgiovaresco Thanks a lot for taking care of that! I wasn't noticing any activity on this thread. |
@hirenoble is the original author (#154). I've just resolve conflicts and fix tests that were failing. @develohpanda noticed that JSON body should be stringified (https://github.com/node-fetch/node-fetch#post-with-json) And looking at fetch options (https://github.com/node-fetch/node-fetch#fetch-options) I noticed that `json` attribute does not exist, so I've removed it. Co-authored-by: Julien Giovaresco <[email protected]>
@hirenoble is the original author (#154).
I've just resolve conflicts and fix tests that were failing.
@develohpanda noticed that JSON body should be stringified (https://github.com/node-fetch/node-fetch#post-with-json)
And looking at fetch options (https://github.com/node-fetch/node-fetch#fetch-options) I noticed that
json
attribute does not exist, so I've removed it.Closes #152