Replies: 2 comments 3 replies
-
Update: monkey-patch solution which appears to work; use at your own peril: express5_mutable_query.js Update again, thanks to a helpful answer on SO I have a solution that only mutates |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the changes in v5 was to make
req.query
a getter. In v4 I had middleware to sanitize/coerce/set defaults inreq.query
and now I can no longer do that. Is there any "hack" by which I can regain this capability?AFAIK, it is still possible to manipulate
body
,headers
,params
, etc so it seems inconsistent that onlyquery
would be immutable.Beta Was this translation helpful? Give feedback.
All reactions