Skip to content
Myr

Change query parser setting default to 'simple'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #3361 closes #3621

authored by Czarek · committed by Douglas Christopher Wilson · parent af341b0 · Browse files · 3 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−3 removed

  • tests:+2 added−2 removed
  • other:+3 added−1 removed

3 files+5 added−3 removed

modified:lib/application.js+1 added-1 removed
87 unmodified lines
88 // default settings89 this.enable('x-powered-by');90 this.set('etag', 'weak');91 this.set('env', env);92 this.set('query parser', 'extended');92 this.set('query parser', 'simple')93 this.set('subdomain offset', 2);94 this.set('trust proxy', false);9596 // trust proxy inherit back-compat
534 unmodified lines
modified:test/req.query.js+2 added-2 removed
modified:History.md+2 added
1 unmodified line
2===34This incorporates all changes after 4.17.1 up to 4.17.2.56 * change:7 - query parser setting defaults to `'simple'`8 * deps: body-parser@2.0.0-beta.19 - `req.body` is no longer always initialized to `{}`10 - `urlencoded` parser now defaults `extended` to `false`11 - Use `on-finished` to determine when body read
3644 unmodified lines