Skip to content
Myr

Renamed "case sensitive routes" to "case sensitive routing"

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

to match "strict routing"

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1e77629 · Browse files · 2 files+4 added−4 removed
This commit

State

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

Diff stats

2 files+4 added−4 removed

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

2 files+4 added−4 removed

modified:lib/router/index.js+1 added-1 removed
391 unmodified lines
392 if (!path) throw new Error('app.' + method + '() requires a path');393394 // create the route395 var route = new Route(method, path, callbacks, {396 sensitive: app.enabled('case sensitive routes')396 sensitive: app.enabled('case sensitive routing')397 , strict: app.enabled('strict routing')398 });399400 // add it
4 unmodified lines
modified:test/app.router.js+3 added-3 removed
72 unmodified lines
73 .get('/USER')74 .expect('tj', done);75 })76 77 describe('when "case sensitive routes" is enabled', function(){77 describe('when "case sensitive routing" is enabled', function(){78 it('should match identical casing', function(done){79 var app = express();8081 app.enable('case sensitive routes');81 app.enable('case sensitive routing');8283 app.get('/uSer', function(req, res){84 res.end('tj');85 });
5 unmodified lines
91 92 it('should not match otherwise', function(done){93 var app = express();9495 app.enable('case sensitive routes');95 app.enable('case sensitive routing');9697 app.get('/uSer', function(req, res){98 res.end('tj');99 });
134 unmodified lines