You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
Hi Guys, the examples omit the Content-Type header for the httpRequest while using POST body. Many http frameworks will ignore the POST body if no Content-Type-Request-Header is set. I think its bad practice to provide examples that probably wont work as expected because that header is missing.
Environment details
OS: GCF
Node.js version: 16
npm version: 8.13.2
@google-cloud/tasks version: ^3.0.0
Steps to reproduce
follow example
receive no req.body in URL that's being called (in my case a GCF using the node/http variety (express))
Hi Guys, the examples omit the
Content-Typeheader for the httpRequest while using POST body. Many http frameworks will ignore the POST body if no Content-Type-Request-Header is set. I think its bad practice to provide examples that probably wont work as expected because that header is missing.Environment details
@google-cloud/tasksversion: ^3.0.0Steps to reproduce
req.bodyin URL that's being called (in my case a GCF using the node/http variety (express))