Skip to content

Undocumented change between 5.0.0-alpha.8 and 5.0.0-beta.1 with req.body #4909

Answered by dougwilson
jassenjj asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry about that! Yes that is intentional. You can find it listed in the change log https://github.com/expressjs/express/blob/v5.0.0-beta.1/History.md#500-beta1--2022-02-14 as

req.body is no longer always initialized to {}

It looks like the docs on expressjs.com where not updated to reflect that. We can get that updated.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jassenjj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants