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
fetch('https://jsonplaceholder.typicode.com/posts', { method: 'POST', body: JSON.stringify({ title: 'foo', body: 'bar', userId: 1 }), headers: { "Content-type": "application/json; charset=UTF-8" } }) .then(response => response.json()) .then(json => console.log(json))
{ id: 101, title: 'foo', body: 'bar', userId: 1 }
{ id: 101, title: 'foo', body: 'bar', userId: '1' }
I'm not sure which one is correct, but it did make writing tests against it a little confusing 😄
Thanks for maintaining the project, and I'm glad I could help in some way!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
Expected response:
Actual response:
I'm not sure which one is correct, but it did make writing tests against it a little confusing 😄
Thanks for maintaining the project, and I'm glad I could help in some way!
The text was updated successfully, but these errors were encountered: