Open mhemesath opened 13 years ago
woah, yeah not sure what that would be, { foo: 'bar' }
still?
Yeah, that or { '[foo]': 'bar' }.
I don't think it matters too much though, as I doubt anyone is going to intentionally do this. I vote for consistency and just bind the foo property directly to the req.body with the bar value. If this behavior is unexpected, they will quickly see whats going on when they inspect the request anyway.
the error message definitely sucks, that's the worst part
I stumbled upon this from a bad input name in my EJS. It seems that querystring isn't expecting un-scoped properties. I don't know what should happen in this case, but the error should probably be handled somehow?