Skip to content
Myr

Fix subapp.mountpath regression for app.use(subapp)

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

fixes #2233

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 8ba3f39 · Browse files · 3 files+14 added−6 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+14 added−6 removed

  • tests:+8 added−5 removed
  • other:+6 added−1 removed

3 files+14 added−6 removed

modified:lib/application.js+1 added-1 removed
166 unmodified lines
167168 // express app169 if (mount_app && mount_app.handle && mount_app.set) {170 debug('.use app under %s', mount_path);171 mount_app.mountpath = path;171 mount_app.mountpath = mount_path;172 mount_app.parent = this;173174 // restore .app property on req and res175 router.use(mount_path, function mounted_app(req, res, next) {
373 unmodified lines
modified:test/app.js+8 added-5 removed
modified:History.md+5 added
1unreleased2==========34 * fix `subapp.mountpath` regression for `app.use(subapp)`564.6.0 / 2014-07-117==================89 * accept multiple callbacks to `app.use()`
1799 unmodified lines